std::shared_mutex(3cxx)

std::shared_mutex3cxx

The standard shared mutex type.

Usage

#include <shared_mutex>

Public Member Functions

shared_mutex (const shared_mutex &)=delete
void lock ()
void lock_shared ()
shared_mutex & operator= (const shared_mutex &)=delete
bool try_lock ()
bool try_lock_shared ()
void unlock ()
void unlock_shared ()

Related Symbols

(Note that these are not member symbols.) template<typename _Mutex > void swap (shared_lock< _Mutex > &__x, shared_lock< _Mutex > &__y) noexcept
Swap specialization for shared_lock.

Detailed Description

The standard shared mutex type.

Releases

2 releases since Debian 12 (Bookworm); the text changed 1 time.

  1. 12
  2. 13

Author

Generated automatically by Doxygen for libstdc++ from the source code.

From libstdc++-12-doc 12.4.0-5 in Debian 13 (Trixie). Also shipped by libstdc++-13-doc. Parsed by carta from the page's man source.