Boost logo

Boost :

From: Howard Hinnant (howard.hinnant_at_[hidden])
Date: 2007-08-24 17:24:06

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?


Boost list run by bdawes at, gregod at, cpdaniel at, john at