[#BloombergLP-bslmt-LockGuard] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslmt.adoc[bslmt]::LockGuard :relfileprefix: ../../ :mrdocs: This class template implements a guard for acquisition and release of synchronization resources (i.e., locks). == Synopsis Declared in `<bslmt_lockguard.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class T> class LockGuard; ---- == Member Functions [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bslmt/LockGuard/2constructor-03.adoc[`LockGuard`] [.small]#[constructor]# | Constructors | xref:BloombergLP/bslmt/LockGuard/2destructor.adoc[`~LockGuard`] [.small]#[destructor]# | Destroy this guard and unlock any managed lock. | xref:BloombergLP/bslmt/LockGuard/ptr.adoc[`ptr`] | Return the address of the modifiable lock object under management by this guard, or 0 if no lock is currently being managed. | xref:BloombergLP/bslmt/LockGuard/release.adoc[`release`] | Relinquish management of the lock without unlocking it. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#