Boost logo

Boost :

From: Roland Schwarz (roland.schwarz_at_[hidden])
Date: 2005-09-15 02:41:23


Matt Hurd schrieb:

> std::cout << "Do I even get here?\n";
>
>I don't get there.
>
>
>
Uups. Now I can see. Sorry, I just was nor careful enough about the startup
synchronization. It just happend to work for me, and I simply was ensuring
this fact by stopping there with the debugger.

However the remedy should be easy:

Just replace:

    ++global_number_of_threads;
    cond.notify_one();

by:

    ++global_number_of_threads;
    cond.notify_all();

Sorry, my fault.

Roland


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk