Created on 2010-08-25.00:00:00 last changed 171 months ago
[ Resolution proposed by ballot comment: ]
unlock should specifiy the precondition that the current thread "owns the lock", this will make calls without holding the locks "undefined behavior". unlock in [mutex.requirements] should either be noexcept(true) or be allowed to throw system_error like unique_lock::unlock, or the latter should be nothrow(true) and have the precondition owns == true. Furthermore unique_lock's postcondition is wrong in the case of a recursive mutex where owns might stay true, when it is not the last unlock needed to be called.
Addresses CH-26
Specifications of unlock member functions and unlock mutex requirements are inconsistent wrt to exceptions and pre- and postconditions.
History | |||
---|---|---|---|
Date | User | Action | Args |
2010-11-11 19:19:17 | admin | set | status: open -> nad editorial |
2010-11-01 20:34:22 | admin | set | messages: + msg5246 |
2010-10-24 16:08:33 | admin | set | messages: + msg5030 |
2010-08-25 00:00:00 | admin | create |