|
Boost : |
From: Matt Hurd (matt.hurd_at_[hidden])
Date: 2005-09-15 02:14:27
> On 15/09/05, Roland Schwarz <roland.schwarz_at_[hidden]> wrote:
> If you fire this up and set a breakpoint just at the start of the follwing
> loop, you can see that main indeed will stop at this breakpoint.
No it doesn't is what I'm saying. Main waits forever in this loop as
it doesn't get a notification after the predicate is satiated.
When I add the std::cout below
{ // we wait until all threads are up
lock_type lock(guard);
while (global_number_of_threads <
number_of_threads_for_test+1)
cond.wait(lock);
}
std::cout << "Do I even get here?\n";
I don't get there.
matt.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk