Scroll to navigation

std::shared_lock< _Mutex >(3cxx) std::shared_lock< _Mutex >(3cxx)

NAME

std::shared_lock< _Mutex > - shared_lock

SYNOPSIS

Public Types


typedef _Mutex mutex_type

Public Member Functions


shared_lock (mutex_type &__m)
shared_lock (mutex_type &__m, adopt_lock_t)
template<typename _Rep , typename _Period > shared_lock (mutex_type &__m, const chrono::duration< _Rep, _Period > &__rel_time)
template<typename _Clock , typename _Duration > shared_lock (mutex_type &__m, const chrono::time_point< _Clock, _Duration > &__abs_time)
shared_lock (mutex_type &__m, defer_lock_t) noexcept
shared_lock (mutex_type &__m, try_to_lock_t)
shared_lock (shared_lock &&__sl) noexcept
shared_lock (shared_lock const &)=delete
void lock ()
mutex_type * mutex () const noexcept
operator bool () const noexcept
shared_lock & operator= (shared_lock &&__sl) noexcept
shared_lock & operator= (shared_lock const &)=delete
bool owns_lock () const noexcept
mutex_type * release () noexcept
void swap (shared_lock &__u) noexcept
bool try_lock ()
template<typename _Rep , typename _Period > bool try_lock_for (const chrono::duration< _Rep, _Period > &__rel_time)
template<typename _Clock , typename _Duration > bool try_lock_until (const chrono::time_point< _Clock, _Duration > &__abs_time)
void unlock ()

Detailed Description

template<typename _Mutex>

class std::shared_lock< _Mutex >"shared_lock

Definition at line 710 of file shared_mutex.

Member Typedef Documentation

template<typename _Mutex > typedef _Mutex std::shared_lock< _Mutex >::mutex_type

Definition at line 713 of file shared_mutex.

Constructor & Destructor Documentation

template<typename _Mutex > std::shared_lock< _Mutex >::shared_lock () [inline], [noexcept]

Definition at line 717 of file shared_mutex.

template<typename _Mutex > std::shared_lock< _Mutex >::shared_lock (mutex_type & __m) [inline], [explicit]

Definition at line 720 of file shared_mutex.

template<typename _Mutex > std::shared_lock< _Mutex >::shared_lock (mutex_type & __m, defer_lock_t) [inline], [noexcept]

Definition at line 724 of file shared_mutex.

template<typename _Mutex > std::shared_lock< _Mutex >::shared_lock (mutex_type & __m, try_to_lock_t) [inline]

Definition at line 727 of file shared_mutex.

template<typename _Mutex > std::shared_lock< _Mutex >::shared_lock (mutex_type & __m, adopt_lock_t) [inline]

Definition at line 730 of file shared_mutex.

template<typename _Mutex > template<typename _Clock , typename _Duration > std::shared_lock< _Mutex >::shared_lock (mutex_type & __m, const chrono::time_point< _Clock, _Duration > & __abs_time) [inline]

Definition at line 734 of file shared_mutex.

template<typename _Mutex > template<typename _Rep , typename _Period > std::shared_lock< _Mutex >::shared_lock (mutex_type & __m, const chrono::duration< _Rep, _Period > & __rel_time) [inline]

Definition at line 740 of file shared_mutex.

template<typename _Mutex > std::shared_lock< _Mutex >::~shared_lock () [inline]

Definition at line 745 of file shared_mutex.

template<typename _Mutex > std::shared_lock< _Mutex >::shared_lock (shared_lock< _Mutex > && __sl) [inline], [noexcept]

Definition at line 754 of file shared_mutex.

Member Function Documentation

template<typename _Mutex > void std::shared_lock< _Mutex >::lock () [inline]

Definition at line 765 of file shared_mutex.

template<typename _Mutex > mutex_type * std::shared_lock< _Mutex >::mutex () const [inline], [noexcept]

Definition at line 826 of file shared_mutex.

template<typename _Mutex > std::shared_lock< _Mutex >::operator bool () const [inline], [explicit], [noexcept]

Definition at line 824 of file shared_mutex.

template<typename _Mutex > shared_lock & std::shared_lock< _Mutex >::operator= (shared_lock< _Mutex > && __sl) [inline], [noexcept]

Definition at line 758 of file shared_mutex.

template<typename _Mutex > bool std::shared_lock< _Mutex >::owns_lock () const [inline], [noexcept]

Definition at line 822 of file shared_mutex.

template<typename _Mutex > mutex_type * std::shared_lock< _Mutex >::release () [inline], [noexcept]

Definition at line 814 of file shared_mutex.

template<typename _Mutex > void std::shared_lock< _Mutex >::swap (shared_lock< _Mutex > & __u) [inline], [noexcept]

Definition at line 807 of file shared_mutex.

template<typename _Mutex > bool std::shared_lock< _Mutex >::try_lock () [inline]

Definition at line 773 of file shared_mutex.

template<typename _Mutex > template<typename _Rep , typename _Period > bool std::shared_lock< _Mutex >::try_lock_for (const chrono::duration< _Rep, _Period > & __rel_time) [inline]

Definition at line 781 of file shared_mutex.

template<typename _Mutex > template<typename _Clock , typename _Duration > bool std::shared_lock< _Mutex >::try_lock_until (const chrono::time_point< _Clock, _Duration > & __abs_time) [inline]

Definition at line 789 of file shared_mutex.

template<typename _Mutex > void std::shared_lock< _Mutex >::unlock () [inline]

Definition at line 796 of file shared_mutex.

Author

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

Mon Sep 5 2022 libstdc++