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

Synopsis

Declared in <sync.h>

class [[scoped_lockable]] reverse_lock;

Member Functions

Name

Description

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.

Created with MrDocs