Created on 2009-09-30.00:00:00 last changed 161 months ago
Proposed resolution:
Change [thread.condition.condvar] p10:
void wait(unique_lock<mutex>& lock);...
Effects:
- ...
- If the function exits via an exception, lock.
unlock() shall be called prior to exiting the function scope.
And make a similar change in p16, and in [thread.condition.condvarany], p8 and p13.
[ 2009-11-17 Moved to Tentatively Ready after 5 positive votes on c++std-lib. ]
[thread.condition.condvar] says:
void wait(unique_lock<mutex>& lock);...
Effects:
- ...
- If the function exits via an exception, lock.unlock() shall be called prior to exiting the function scope.
Should that be lock.lock()?
History | |||
---|---|---|---|
Date | User | Action | Args |
2011-08-23 20:07:26 | admin | set | status: wp -> c++11 |
2010-10-21 18:28:33 | admin | set | messages: + msg1207 |
2010-10-21 18:28:33 | admin | set | messages: + msg1206 |
2009-09-30 00:00:00 | admin | create |