void lock();
Throws: Any exception thrown by pm->lock_shared(). system_error when an exception is required ([thread.req.exception]).
bool try_lock();
Postconditions: owns == res, where res is the value returned by the call to pm->try_lock_shared().
Throws: Any exception thrown by pm->try_lock_shared(). system_error when an exception is required ([thread.req.exception]).
template <class Clock, class Duration>
bool
try_lock_until(const chrono::time_point<Clock, Duration>& abs_time);
Postconditions: owns == res, where res is the value returned by the call to pm->try_lock_shared_until(abs_time).
Throws: Any exception thrown by pm->try_lock_shared_until(abs_time). system_error when an exception is required ([thread.req.exception]).
template <class Rep, class Period>
bool try_lock_for(const chrono::duration<Rep, Period>& rel_time);
Postconditions: owns == res, where res is the value returned by the call to pm->try_lock_shared_for(rel_time).
Throws: Any exception thrown by pm->try_lock_shared_for(rel_time). system_error when an exception is required ([thread.req.exception]).
void unlock();
Throws: system_error when an exception is required ([thread.req.exception]).