std::shared_lock
From cppreference.com
Defined in header <mutex>
|
||
template< class Mutex > class shared_lock; |
(since C++11) | |
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 Template:concept and Template:concept but not of Template:concept or Template:concept.
Contents |
Template parameters
Mutex | - | the type of the shared mutex to lock. The type must meet the Template:concept requirements |
Member types
Type | Definition |
mutex_type
|
Mutex |