Construct a jss::generic_lock_guard
instance
that owns the lock on the supplied mutex.
template<typename Mutex> generic_lock_guard(Mutex& m,std::adopt_lock_t);
The calling thread must own a lock on m
.
Constructs a jss::generic_lock_guard
instance
that references the supplied mutex and takes ownership of the lock
on m
held by the
calling thread.
Nothing.
*this
owns the lock on m
held by the calling thread.
#include <jss/guards.hpp>