[#UniqueLock-reverse_lock] = xref:UniqueLock.adoc[UniqueLock]::reverse_lock :relfileprefix: ../ :mrdocs: An RAII‐style reverse lock. Unlocks on construction and locks on destruction. == Synopsis Declared in `<sync.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class [[scoped_lockable]] reverse_lock; ---- == Member Functions [cols="1,4"] |=== | Name| Description | xref:UniqueLock/reverse_lock/2constructor-0f.adoc[`reverse_lock`] [.small]#[constructor]# | Unlock the wrapped lock, to be re‐locked when this object is destroyed. | xref:UniqueLock/reverse_lock/2destructor.adoc[`~reverse_lock`] [.small]#[destructor]# | Re‐acquire the wrapped lock that was released on construction. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#