|
libstdc++
|
Classes | |
| struct | std::adopt_lock_t |
| struct | std::defer_lock_t |
| class | std::lock_guard< _Mutex > |
| class | std::mutex |
| struct | std::once_flag |
| class | std::recursive_mutex |
| class | std::recursive_timed_mutex |
| class | std::shared_lock< _Mutex > |
| class | std::shared_timed_mutex |
| class | std::timed_mutex |
| struct | std::try_to_lock_t |
| class | std::unique_lock< _Mutex > |
Functions | |
| void | std::__once_proxy (void) |
| template<typename _Callable, typename... _Args> | |
| void | std::call_once (once_flag &__once, _Callable &&__f, _Args &&... __args) |
| template<typename _L1, typename _L2, typename... _L3> | |
| void | std::lock (_L1 &__l1, _L2 &__l2, _L3 &... __l3) |
| template<typename _L1, typename _L2, typename... _L3> | |
| int | std::try_lock (_L1 &__l1, _L2 &__l2, _L3 &... __l3) |
Variables | |
| constexpr adopt_lock_t | std::adopt_lock |
| constexpr defer_lock_t | std::defer_lock |
| constexpr try_to_lock_t | std::try_to_lock |
Classes for mutex support.
| void std::call_once | ( | once_flag & | __once, |
| _Callable && | __f, | ||
| _Args &&... | __args ) |
| void std::lock | ( | _L1 & | __l1, |
| _L2 & | __l2, | ||
| _L3 &... | __l3 ) |
Generic lock.
| __l1 | Meets Lockable requirements (try_lock() may throw). |
| __l2 | Meets Lockable requirements (try_lock() may throw). |
| __l3 | Meets Lockable requirements (try_lock() may throw). |
| An | exception thrown by an argument's lock() or try_lock() member. |
All arguments are locked via a sequence of calls to lock(), try_lock() and unlock(). If this function exits via an exception any locks that were obtained will be released.
Definition at line 686 of file mutex.
References defer_lock, and try_lock().
|
inlinenodiscard |
Generic try_lock.
| __l1 | Meets Lockable requirements (try_lock() may throw). |
| __l2 | Meets Lockable requirements (try_lock() may throw). |
| __l3 | Meets Lockable requirements (try_lock() may throw). |
Sequentially calls try_lock() on each argument.
Definition at line 627 of file mutex.
Referenced by lock().
|
inlineconstexpr |
Tag used to make a scoped lock take ownership of a locked mutex.
Definition at line 258 of file std_mutex.h.
|
inlineconstexpr |
Tag used to prevent a scoped lock from acquiring ownership of a mutex.
Definition at line 252 of file std_mutex.h.
Referenced by lock().
|
inlineconstexpr |
Tag used to prevent a scoped lock from blocking if a mutex is locked.
Definition at line 255 of file std_mutex.h.