libstdc++
Mutexes
Collaboration diagram for Mutexes:

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 blocking if a mutex is locked. More...
class  std::mutex
 The standard mutex type. More...
struct  std::try_to_lock_t
 Try to acquire ownership of the mutex without blocking. More...
class  std::unique_lock< _Mutex >
 A movable scoped lock type. More...

Variables

_GLIBCXX17_INLINE constexpr
defer_lock_t 
std::defer_lock
#define __cpp_lib_shared_timed_mutex
template<typename _Mutex >
void std::swap (shared_lock< _Mutex > &__x, shared_lock< _Mutex > &__y) noexcept

Detailed Description

Classes for mutex support.


Define Documentation

Swap specialization for shared_lock.

Definition at line 56 of file shared_mutex.


Function Documentation

template<typename _Mutex >
void std::swap ( shared_lock< _Mutex > &  __x,
shared_lock< _Mutex > &  __y 
)

Swap specialization for shared_lock.

Definition at line 759 of file shared_mutex.


Variable Documentation

_GLIBCXX17_INLINE constexpr defer_lock_t std::defer_lock

Tag used to prevent a scoped lock from acquiring ownership of a mutex.

Definition at line 139 of file std_mutex.h.