Boost logo

Boost Users :

Subject: Re: [Boost-users] [Thread] barrier destruction after wait() resultsin assertion
From: Peter Dimov (pdimov_at_[hidden])
Date: 2008-12-03 10:16:34


Anthony Williams:
...
>> void f()
>> {
>> barrier->wait();
>> }
>>
>> int main(void)
>> {
>> barrier.reset(new boost::barrier(2));
>> boost::thread thread(boost::bind(&f));
>> barrier->wait();
>
> At this point, there is no guarantee that f() has started.

Yes there is.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net