[#BloombergLP-bslmt-WriteLockGuardUnlock-release]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslmt.adoc[bslmt]::xref:BloombergLP/bslmt/WriteLockGuardUnlock.adoc[WriteLockGuardUnlock]::release
:relfileprefix: ../../../
:mrdocs:

Release the managed lock from this guard without locking it&period;

== Synopsis

Declared in `&lt;bslmt&lowbar;writelockguard&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
T*
release();
----

== Description

Return the address of the modifiable lock object under management by this guard, and release the lock from further management by this guard&period; If no lock is currently being managed, return 0 with no other effect&period; Note that this operation does _not_ lock the lock object (if any) that was under management&period;

== Return Value

address of the previously managed lock, or 0 if none


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