Boost logo

Boost :

From: Sohail Somani (s.somani_at_[hidden])
Date: 2007-01-12 13:56:28

> [mailto:boost-bounces_at_[hidden]] 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?



Boost list run by bdawes at, gregod at, cpdaniel at, john at