Boost logo

Boost :

From: Scott McCaskill (scott_mccaskill_at_[hidden])
Date: 2003-02-12 18:10:24


I was just looking at the win32 implementation of the
condition variable class in the thread library and
noticed something odd. In version 1.7 of
condition.cpp, there is a bug fix for
condition::notify_one. At the beginning of the
function, a mutex is acquired, but not all control
paths resulted in the mutex being released. Part of
the fix involved making sure that the mutex is always
released.

However, it looks like the same behavior still exists
in the current version of condition.cpp for notify_all
(win32)--not all control paths will release the mutex.
 Am I mistaken, or is this a bug? Also, the
BOOST_HAS_MPTASKS version of notify_one looks like it
has the same bug as the win32 version in version 1.6
of condition.cpp.

--Scott McCaskill

__________________________________________________
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day
http://shopping.yahoo.com


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