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...

Functions

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

Variables

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

Detailed Description

Classes for mutex support.


Define Documentation

Swap specialization for shared_lock.

Definition at line 59 of file shared_mutex.


Function Documentation

template<typename _Mutex >
void std::swap ( unique_lock< _Mutex > &  __x,
unique_lock< _Mutex > &  __y 
) [inline]

Swap overload for unique_lock objects.

Definition at line 363 of file std_mutex.h.

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

Swap specialization for shared_lock.

Definition at line 678 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 142 of file std_mutex.h.