Title
condition_variable_any support for recursive mutexes?
Status
nad
Section
[thread.condition.condvarany]
Submitter
Jeffrey Yasskin

Created on 2009-09-30.00:00:00 last changed 164 months ago

Messages

Date: 2010-10-21.18:28:33

Rationale:

condition_variable_any::wait accepts any type of mutex. It calls unlock precisely once on entry and lock precisely once on exit. It is up to the user to ensure that this provides the required synchronization. Use of a recursive mutex is safe if either its lock count is 1, so after the single unlock it can be acquired by another thread, or another mechanism is used to synchronize the data.

Date: 2009-11-17.00:00:00

[ 2009-11-17 Moved to Tentatively NAD after 5 positive votes on c++std-lib. Rationale added below. ]

Date: 2009-09-30.00:00:00

For condition_variable_any, are recursive mutexes allowed? (I think "no")

History
Date User Action Args
2010-10-21 18:28:33adminsetmessages: + msg1213
2010-10-21 18:28:33adminsetmessages: + msg1212
2009-09-30 00:00:00admincreate