Title
What does condition_variable wait on?
Status
c++11
Section
[thread.condition]
Submitter
Jeffrey Yasskin

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

Messages

Date: 2010-10-21.18:28:33

Proposed resolution:

Change [thread.condition], p1:

Condition variables provide synchronization primitives used to block a thread until notified by some other thread that some condition is met or until a system time is reached. Class condition_variable provides a condition variable that can only wait on an object of type unique_lock<mutex>, allowing maximum efficiency on some platforms. Class condition_variable_any provides a general condition variable that can wait on objects of user-supplied lock types.

Date: 2009-11-06.00:00:00

[ 2009-11-06 Howard adds: ]

Moved to Tentatively Ready after 5 positive votes on c++std-lib.

Date: 2009-09-30.00:00:00

"Class condition_variable provides a condition variable that can only wait on an object of type unique_lock" should say "...object of type unique_lock<mutex>"

History
Date User Action Args
2011-08-23 20:07:26adminsetstatus: wp -> c++11
2010-10-21 18:28:33adminsetmessages: + msg1200
2010-10-21 18:28:33adminsetmessages: + msg1199
2009-09-30 00:00:00admincreate