Boost logo

Boost :

From: Howard Hinnant (hinnant_at_[hidden])
Date: 2007-11-15 10:00:44


On Nov 15, 2007, at 7:02 AM, Alexander Terekhov wrote:

>> http://svn.boost.org/svn/boost/trunk/boost/thread/pthread/condition_variable.hpp
>
> That condition_variable_any wrapper doesn't ensure same destruction
> safety of condition varaible as POSIX pthread_cond_t. That's not good.

Thanks for this observation Alexander. Do you have a recommendation
for fixing it? The best I'm coming up with at the moment is to keep a
count of waiters as member data and have ~condition_variable_any()
wait until the count drops to zero.

-Howard


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk