[#BloombergLP-bslmt-WriteLockGuardTryLock] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslmt.adoc[bslmt]::WriteLockGuardTryLock :relfileprefix: ../../ :mrdocs: This class template implements a guard for tentative acquisition and release of write synchronization resources (i.e., writer locks). == Synopsis Declared in `<bslmt_writelockguard.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class T> class WriteLockGuardTryLock; ---- == Member Functions [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bslmt/WriteLockGuardTryLock/2constructor.adoc[`WriteLockGuardTryLock`] [.small]#[constructor]# | Create a guard that tries to acquire a write lock on `lock`. | xref:BloombergLP/bslmt/WriteLockGuardTryLock/2destructor.adoc[`~WriteLockGuardTryLock`] [.small]#[destructor]# | Destroy this guard and unlock the managed lock object, if any. | xref:BloombergLP/bslmt/WriteLockGuardTryLock/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/WriteLockGuardTryLock/release.adoc[`release`] | Release the managed lock from this guard without unlocking it. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#