UniqueLock::reverse_lock

An RAII-style reverse lock. Unlocks on construction and locks on destruction.

Synopsis

Declared in <sync.h>

class [[scoped_lockable]] reverse_lock;

Member Functions

NameDescription
reverse_lock [constructor]Unlock the wrapped lock, to be re-locked when this object is destroyed.
~reverse_lock [destructor]Re-acquire the wrapped lock that was released on construction.