hpx::timed_mutex#
Defined in header hpx/mutex.hpp.
See Public API for a list of names and headers that are part of the public HPX API.
See also:
-
class timed_mutex : private hpx::mutex#
The timed_mutex class is a synchronization primitive that can be used to protect shared data from being simultaneously accessed by multiple threads. In a manner similar to mutex, timed_mutex offers exclusive, non-recursive ownership semantics. In addition, timed_mutex provides the ability to attempt to claim ownership of a timed_mutex with a timeout via the member functions try_lock_for() and try_lock_until(). The timed_mutex class satisfies all requirements of <a and <a.
hpx::timed_mutex is neither copyable nor movable.