The TimedLockable requirements describe the characteristics of types that provide timed exclusive blocking semantics for execution agents (threads, processes, tasks).
[edit] RequirementsFor type L
to be TimedLockable, given
rel_time
, a value of a specialization of std::chrono::duration, andabs_time
, a value of a specialization of std::chrono::time_point,the following conditions have to be satisfied for an object m
of type L
:
rel_time
or until a lock on m
is acquired. true if the lock was acquired, false otherwise. m.try_lock_until(abs_time) Blocks until the provided time point abs_time
is reached or a lock on m
is acquired. true if the lock was acquired, false otherwise. [edit] Notes
The try_lock_for
and try_lock_until
member functions obtain a non-shared lock on m on success.
The following standard library types satisfy TimedLockable:
provides mutual exclusion facility which implements locking with a timeoutRetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4