Construct a std::shared_lock
instance that locks
the supplied mutex.
explicit shared_lock(mutex_type& m);
Constructs a std::shared_lock
instance that
references the supplied mutex. Calls m.lock_shared()
.
Any exceptions thrown by m.lock_shared()
.
this->owns_lock()==true
, this->mutex()==&m
.
#include <shared_mutex>