33
Thread support library
[thread]
33.2
Requirements
[thread.req]
33.2.5
Requirements for
Lockable
types
[thread.req.lockable]
33.2.5.3
Lockable
requirements
[thread.req.lockable.req]
1
#
A type
L
meets the
Lockable
requirements if it meets the
BasicLockable
requirements and the following expressions are well-formed and have the specified semantics (
m
denotes a value of type
L
)
.
m.try_lock()
2
#
Effects:
Attempts to acquire a lock for the current execution agent without blocking
.
If an exception is thrown then a lock shall not have been acquired for the current execution agent
.
3
#
Return type:
bool
.
4
#
Returns:
true
if the lock was acquired,
false
otherwise
.