9 Sep
2005
9 Sep
'05
2:38 a.m.
Date: Thu, 8 Sep 2005 21:06:12 +0200 From: "Johan 't Hart" <jopie64@hotmail.com> Subject: Re: [Boost-users] Thread events To: <boost-users@lists.boost.org> Message-ID: <BAY109-DAV27468EBFC3012D63D9A99B4990@phx.gbl> Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original
Thanks for your replies.
To me boost::condition looks very much like the old event variable, except that it works together with a mutex. I am now wondering why you should lock a mutex before waiting for the condition? Is there a rationale about this?
Johan
Also note that the wait() on the condition unlocks the mutex until you return from the wait call. That's not always obvious from the examples.
6951
Age (days ago)
6951
Last active (days ago)
0 comments
1 participants
participants (1)
-
Gottlob Frege