Boost logo

Boost :

Subject: Re: [boost] Boost Threading Shared Memory
From: Dean Michael Berris (mikhailberis_at_[hidden])
Date: 2010-10-29 00:47:56

On Thu, Oct 28, 2010 at 4:27 AM, Tanya Gillis <turtletsg_at_[hidden]> wrote:
> I have a question regarding Boost threads, and am awaiting acceptance into
> the Boost Threads forum. I was wondering if anyone can help me. I am
> creating a multithreaded application using Boost threading, and would like
> to know how shared memory is implemented by Boost for threading. Each thread
> creates an object separately, and that object has a private member variable.
> We are seeing in our application that that member variable is looking the
> same, as if it was shared among the threads. Is this plausible? How does it
> work?

This question looks like it belongs to the Boost Users mailing list.

My easy guess would be if your private member variable is static, then
all the threads will see it and the changes made to it.

> Thanks.

If you show us the code that reproduces your problem we might be able
to help you better.


Dean Michael Berris

Boost list run by bdawes at, gregod at, cpdaniel at, john at