class
std::timed_mutex
- Header
<mutex>- Draft
- [timedmutex.class]
- Scope
std- cppreference
- std::timed_mutex
Synopsis
class timed_mutex;Member functions
| Name | Declaration |
|---|---|
timed_mutexconstructor · 2 overloads | timed_mutex() +1 more |
~timed_mutexdestructor | ~timed_mutex() |
operator=operator | timed_mutex& operator=(const timed_mutex& other) |
lockmember function | void lock() |
try_lockmember function | bool try_lock() |
try_lock_formember function template | bool try_lock_for(const chrono::duration<Rep, Period>& rel_time) |
try_lock_untilmember function template | bool try_lock_until(const chrono::time_point<Clock, Duration>& abs_time) |
unlockmember function | void unlock() |