condition_variable::notify_all and notify_one don't require lock to be locked

condition_variable::notify_all and notify_one don't require lock to be locked

Post by Michae » Sun, 09 Jan 2011 23:27:38



It does?

How does it go about doing that? It doesn't have a mutex to check.
The only place where the mutex appears in the API is the wait()
function.


Mike


--
[ See http://www.yqcomputer.com/ ]
[ comp.lang.c++.moderated. First time posters: Do this! ]