
15 Sep
2005
15 Sep
'05
7:14 a.m.
On 15/09/05, Roland Schwarz <roland.schwarz@chello.at> 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.