Created on 2020-04-04.00:00:00 last changed 12 months ago
Proposed resolution:
This wording is relative to N4861.
Modify [thread.condition.condvarany] as indicated:
-1-
A Lock typeIn this subclause [thread.condition.condvarany], template arguments for template parameters named Lock shall meet the Cpp17BasicLockable requirements ([thread.req.lockable.basic]). [Note: All of the standard mutex types meet this requirement. If aLocktype other than one of the standard mutex types or a unique_lock wrapper for a standard mutex type is used with condition_variable_any, the user should ensure that any necessary synchronization is in place with respect to the predicate associated with the condition_variable_any instance. — end note]
[ 2020-11-09 Approved In November virtual meeting. Status changed: Tentatively Ready → WP. ]
[ 2020-04-11 Issue Prioritization ]
Status set to Tentatively Ready after seven positive votes on the reflector.
[ 2020-04-06; Tim improves wording ]
[thread.condition.condvarany]/1 says "A Lock type shall meet the Cpp17BasicLockable requirements ([thread.req.lockable.basic]).", which is fine, but it notably doesn't require anything to be a Lock type or meet the requirements of a Lock type. Given that every member template of condition_variable_any has a template parameter named Lock, the intent is clearly to impose a requirement on the template arguments supplied for those parameters but the use of code font for "Lock" in the definition of "Lock type" is a bit subtle to establish that connection. We should specify this more clearly.
Previous resolution [SUPERSEDED]:This wording is relative to N4861.
Modify [thread.condition.condvarany] as indicated:
-1-
A Lock typeTemplate arguments for template parameters of member templates of conditional_variable_any named Lock shall meet the Cpp17BasicLockable requirements ([thread.req.lockable.basic]). [Note: All of the standard mutex types meet this requirement. If aLocktype other than one of the standard mutex types or a unique_lock wrapper for a standard mutex type is used with condition_variable_any, the user should ensure that any necessary synchronization is in place with respect to the predicate associated with the condition_variable_any instance. — end note]
History | |||
---|---|---|---|
Date | User | Action | Args |
2023-11-22 15:47:43 | admin | set | status: wp -> c++23 |
2020-11-09 21:40:50 | admin | set | messages: + msg11569 |
2020-11-09 21:40:50 | admin | set | status: ready -> wp |
2020-04-11 20:10:53 | admin | set | messages: + msg11212 |
2020-04-11 20:10:53 | admin | set | status: new -> ready |
2020-04-06 18:09:50 | admin | set | messages: + msg11201 |
2020-04-05 16:56:18 | admin | set | messages: + msg11200 |
2020-04-04 00:00:00 | admin | create |