|
libstdc++
|
Classes | |
| struct | std::adopt_lock_t |
| Assume the calling thread has already obtained mutex ownership and manage it. More... | |
| struct | std::defer_lock_t |
| Do not acquire ownership of the mutex. More... | |
| class | std::lock_guard< _Mutex > |
| Tag used to prevent a scoped lock from acquiring ownership of a mutex. More... | |
| class | std::mutex |
| The standard mutex type. More... | |
| struct | std::once_flag |
| once_flag More... | |
| class | std::recursive_mutex |
| The standard recursive mutex type. More... | |
| struct | std::try_to_lock_t |
| Try to acquire ownership of the mutex without blocking. More... | |
| class | std::unique_lock< _Mutex > |
| unique_lock More... | |
Functions | |
| template<typename _Callable > | |
| void | std::__once_call_impl () |
| void | std::__once_proxy (void) |
| template<typename _Lock > | |
| unique_lock< _Lock > | std::__try_to_lock (_Lock &__l) |
| 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 _Mutex > | |
| void | std::swap (unique_lock< _Mutex > &__x, unique_lock< _Mutex > &__y) noexcept |
| template<typename _Lock1 , typename _Lock2 , typename... _Lock3> | |
| int | std::try_lock (_Lock1 &__l1, _Lock2 &__l2, _Lock3 &...__l3) |
Variables | |
| __thread void(* | std::__once_call )() |
| __thread void * | std::__once_callable |
| template<typename _Mutex > | |
| void | std::swap (shared_lock< _Mutex > &__x, shared_lock< _Mutex > &__y) noexcept |
| #define | __cpp_lib_shared_timed_mutex |
Classes for mutex support.
| #define __cpp_lib_shared_timed_mutex |
Swap specialization for shared_lock.
Definition at line 55 of file shared_mutex.
| void std::call_once | ( | once_flag & | __once, |
| _Callable && | __f, | ||
| _Args &&... | __args | ||
| ) |
| void std::lock | ( | _L1 & | __l1, |
| _L2 & | __l2, | ||
| _L3 &... | __l3 | ||
| ) |
Generic lock.
| __l1 | Meets Mutex requirements (try_lock() may throw). |
| __l2 | Meets Mutex requirements (try_lock() may throw). |
| __l3 | Meets Mutex 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 the call exits via an exception any locks that were obtained will be released.
Definition at line 659 of file mutex.
References std::tie().
| void std::swap | ( | unique_lock< _Mutex > & | __x, |
| unique_lock< _Mutex > & | __y | ||
| ) | [inline] |
Swap overload for unique_lock objects.
| void std::swap | ( | shared_lock< _Mutex > & | __x, |
| shared_lock< _Mutex > & | __y | ||
| ) |
Swap specialization for shared_lock.
Definition at line 596 of file shared_mutex.
| int std::try_lock | ( | _Lock1 & | __l1, |
| _Lock2 & | __l2, | ||
| _Lock3 &... | __l3 | ||
| ) |
Generic try_lock.
| __l1 | Meets Mutex requirements (try_lock() may throw). |
| __l2 | Meets Mutex requirements (try_lock() may throw). |
| __l3 | Meets Mutex requirements (try_lock() may throw). |
Sequentially calls try_lock() on each argument.
Definition at line 638 of file mutex.
References std::tie().