Mutexes
Concurrency
Collaboration diagram for Mutexes:

## Classes

struct | std::adopt_lock_t
struct | std::defer_lock_t
class | std::lock_guard< _Mutex >
class | std::mutex
struct | std::try_to_lock_t
class | std::unique_lock< _Mutex >

## Functions

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

## Variables

_GLIBCXX17_INLINE constexpr adopt_lock_t | std::adopt_lock
_GLIBCXX17_INLINE constexpr defer_lock_t | std::defer_lock
_GLIBCXX17_INLINE constexpr try_to_lock_t | std::try_to_lock
template<typename _Mutex >
void | std::swap (shared_lock< _Mutex > &__x, shared_lock< _Mutex > &__y) noexcept
#define | __cpp_lib_shared_timed_mutex
using | std::__shared_timed_mutex_base = __shared_mutex_cv

## Detailed Description

Classes for mutex support.

## Macro Definition Documentation

## __cpp_lib_shared_timed_mutex

#define __cpp_lib_shared_timed_mutex

Swap specialization for shared_lock.

Definition at line 57 of file shared_mutex.

## Typedef Documentation

## __shared_timed_mutex_base

using std::__shared_timed_mutex_base = typedef __shared_mutex_cv

Swap specialization for shared_lock.

Definition at line 355 of file shared_mutex.

## Function Documentation

## swap() [1/2]

template<typename _Mutex >

void std::swap | ( | unique_lock< _Mutex > & | __x,
|  | unique_lock< _Mutex > & | __y
| ) |  |

inline noexcept

Swap overload for unique_lock objects.

Definition at line 363 of file std_mutex.h.

## swap() [2/2]

template<typename _Mutex >

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

noexcept

Swap specialization for shared_lock.

Definition at line 676 of file shared_mutex.

## Variable Documentation

## adopt_lock

_GLIBCXX17_INLINE constexpr adopt_lock_t std::adopt_lock

Tag used to make a scoped lock take ownership of a locked mutex.

Definition at line 148 of file std_mutex.h.

## defer_lock

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

## try_to_lock

_GLIBCXX17_INLINE constexpr try_to_lock_t std::try_to_lock

Tag used to prevent a scoped lock from blocking if a mutex is locked.

Definition at line 145 of file std_mutex.h.

Referenced by std::__try_to_lock().