std::shared_mutex
The standard shared mutex type.
- Provided by: libstdc++-13-doc (Version: 13.3.0-6ubuntu2~24.04.1)
- Source: gcc-13
- Report a bug
The standard shared mutex type.
#include <shared_mutex>
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 ()
(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.
The standard shared mutex type.
Generated automatically by Doxygen for libstdc++ from the source code.