$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
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.