
24 Aug
2007
24 Aug
'07
9:24 p.m.
On Aug 24, 2007, at 5:22 PM, Howard Hinnant wrote:
The current boost::condition::wait(lock) throws if lock.locked() returns false. To people view this as a recoverable run time error? Or a debug feature that should not be present in release builds?
I.e. if lock.locked() (lock.owns() or lock.holds_mutex() or whatever) returns false, is that undefined or defined behavior?
-Howard
Or should condition::wait() not take any parameters, or take only mutexes, making the issue moot? -Howard