Construct a jss::lock_guard
instance that locks
the supplied lockable objects.
explicit lock_guard(LockableTypes& ... m);
Constructs a jss::lock_guard
instance that
references the supplied mutexes. Uses an algorithm equivalent to
std::lock(m....)
to lock all of the supplied lockable objects without deadlock.
Any exceptions thrown by any of the calls to acquire the locks on the lockable objects.
*this
owns a lock on all the lockable objects in m
.
#include <jss/guards.hpp>