std::shared_lock
From cppreference.com
Defined in header <mutex>
|
||
template< class Mutex > class shared_lock; |
(since C++14) | |
The class shared_lock is a general-purpose shared mutex ownership wrapper allowing deferred locking, timed locking and transfer of lock ownership,
The shared_lock
class is movable, but not copyable -- it meets the requirements of MoveConstructible
and MoveAssignable
but not of CopyConstructible
or CopyAssignable
.
Contents |
[edit] Template parameters
Mutex | - | the type of the shared mutex to lock. The type must meet the SharedMutex requirements
|
[edit] Member types
Type | Definition |
mutex_type
|
Mutex |
[edit] Member functions
[edit] Non-member functions
specialization of std::swap for shared_lock (function template) |