Boost logo

Threads-Devel :

Subject: Re: [Threads-devel] may be a bug in boost.thread on freebsd 8.0
From: John Rocha (jrr_at_[hidden])
Date: 2010-07-28 11:18:15

 From my reading, and a new google search, pthread condvars can be used
between processes. However, the condvar ans the global they are
monitoring have to be in memory that is shared between the processes,
and the condvar has to be initialized in a way that indicates its shared
between processes.



Anthony Williams wrote:
> On 28/07/10 15:09, å×ÇÅÎÉÊ ûÕÂÉÎ wrote:
>> I have tried using raw pthread and it works fine. Here is a sample code:
> [snip]
>> But there is no usage of condition variable.
> Do pthread condition variables work with fork()?
>> I see no reason using it in such simple task like thread joining.
> They are used by boost.thread to enable timed_join.
>> Should I dive into source code of boost.thread(pthread/thread.cpp) to
>> solve this problem?
> If you like.
> Anthony

Thought for the day: "2 much txting mks u 1 bad splr!!!!"

Threads-Devel list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at