Created on 2009-03-12.00:00:00 last changed 161 months ago
Proposed resolution:
Strike [thread.lock.unique.cons] p7:
unique_lock(mutex_type& m, defer_lock_t);
-7- Precondition: If mutex_type is not a recursive mutex the calling thread does not own the mutex.
[ Batavia (2009-05): ]
We agree with the proposed resolution. Move to Tentatively Ready.
[ Summit: ]
Agree, move to review.
Addresses UK 326 [CD1]
The precondition that the mutex is not owned by this thread offers introduces the risk of unnecessary undefined behaviour into the program. The only time it matters whether the current thread owns the mutex is in the lock operation, and that will happen subsequent to construction in this case. The lock operation has the identical pre-condition, so there is nothing gained by asserting that precondition earlier and denying the program the right to get into a valid state before calling 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: + msg471 |
2010-10-21 18:28:33 | admin | set | messages: + msg470 |
2010-10-21 18:28:33 | admin | set | messages: + msg469 |
2009-03-12 00:00:00 | admin | create |