[#UniqueLock-reverse_lock]
= xref:UniqueLock.adoc[UniqueLock]::reverse&lowbar;lock
:relfileprefix: ../
:mrdocs:

An RAII&hyphen;style reverse lock&period; Unlocks on construction and locks on destruction&period;

== Synopsis

Declared in `&lt;sync&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
class &lsqb;&lsqb;scoped&lowbar;lockable&rsqb;&rsqb; reverse&lowbar;lock;
----

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:UniqueLock/reverse_lock/2constructor-0f.adoc[`reverse&lowbar;lock`]         [.small]#[constructor]#
| Unlock the wrapped lock, to be re&hyphen;locked when this object is destroyed&period;
| xref:UniqueLock/reverse_lock/2destructor.adoc[`&#126;reverse&lowbar;lock`] [.small]#[destructor]#
| Re&hyphen;acquire the wrapped lock that was released on construction&period;
|===



[.small]#Created with https://www.mrdocs.com[MrDocs]#
