libycxx

class template

std::shared_lock

Scope
std

Synopsis

template<class Mutex>
class shared_lock;

Member types

NameDeclaration
mutex_typetype alias · member type= Mutex

Member functions

NameDeclaration
shared_lockconstructor · 9 overloadsshared_lock() +8 more
~shared_lockdestructor~shared_lock()
operator=operator · 2 overloadsshared_lock& operator=(const shared_lock& other) +1 more
lockmember functionvoid lock()
mutexmember functionmutex_type* mutex() const
owns_lockmember functionbool owns_lock() const
releasemember functionmutex_type* release()
swapmember functionvoid swap(shared_lock& u)
try_lockmember functionbool try_lock()
try_lock_formember function templatebool try_lock_for(const chrono::duration<Rep, Period>& rel_time)
try_lock_untilmember function templatebool try_lock_until(const chrono::time_point<Clock, Duration>& abs_time)
unlockmember functionvoid unlock()
operator boolconversion functionoperator bool() const