Boost logo

Threads-Devel :

From: Frank Mori Hess (frank.hess_at_[hidden])
Date: 2007-12-05 14:09:00


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tuesday 27 November 2007 03:06 am, Anthony Williams wrote:
> The new trunk code provides two condition variable types:
> condition_variable and condition_variable_any.
>
> condition_variable works with unique_lock<mutex> ONLY, and the function
> signatures are explicit about that. condition_variable_any will work with
> anything that supports unlock() and lock().

Is it possible to make condition_variable_any work with recursive mutexes? It
seems like an additional interface on the lock would be required, since a
recursive mutex may still be locked by the current thread even after calling
unlock().

- --
Frank
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFHVvdQ5vihyNWuA4URAvUxAKDK0DyUD8yLgJfIWoEus8gF69kbeQCdFKWU
yjOaSjs/ooYOHr6i/drezyw=
=zzQh
-----END PGP SIGNATURE-----


Threads-Devel list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk