9 Sep
2005
9 Sep
'05
2:38 a.m.
Date: Thu, 8 Sep 2005 21:06:12 +0200 From: "Johan 't Hart"
Subject: Re: [Boost-users] Thread events To: Message-ID: 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.