Construct a jss::generic_lock_guard
instance
that locks the supplied mutex.
template<typename Mutex> explicit generic_lock_guard(Mutex& m);
Constructs a jss::generic_lock_guard
instance
that references the supplied mutex. Calls m.lock()
.
Any exceptions thrown by m.lock()
.
*this
owns a lock on m
.
#include <jss/guards.hpp>