
12 Jan
2007
12 Jan
'07
6:56 p.m.
[mailto:boost-bounces@lists.boost.org] On Behalf Of Dmitry Ivankov
But just wait in threads is bad, because of spurious wake ups. It should be like
while (!::we_can_start) g_some_cond.wait(condition_lock);
and
::we_can_start = true; condition_lock.notify_all();
Yes, I do need to read my OS dev textbook again which tried to hammer this in. Is there some way to encapsulate this? Bad idea? Thanks, Sohail