Boost logo

Boost Users :

Subject: Re: [Boost-users] Race in boost::condition_variable::wait
From: Chris Stankevitz (chrisstankevitz_at_[hidden])
Date: 2015-12-23 18:50:16


On Wed, Dec 23, 2015 at 3:02 PM, Éric Malenfant
<eric.malenfant_at_[hidden]> wrote:
> However, I still don't understand your question. The thread releases the
> external mutex while holding the internal, and notify_all acquires the
> internal before notifying the condition.

Eric,

Thank you again. I did not understand that
boost::condition_variable::notify locked the internal mutex. I now
see how it all works and that indeed there is no race.

Chris


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net