Re: [boost] [Threads] uncoditional scoped lock?

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
6729
Age (days ago)
6729
Last active (days ago)
0 comments
1 participants
participants (1)
-
Sohail Somani