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>

template<class T>
class WriteLockGuardTryLock;

Member Functions

Name

Description

WriteLockGuardTryLock [constructor]

Create a guard that tries to acquire a write lock on lock.

~WriteLockGuardTryLock [destructor]

Destroy this guard and unlock the managed lock object, if any.

ptr

Return the address of the modifiable lock object under management by this guard, or 0 if no lock is currently being managed.

release

Release the managed lock from this guard without unlocking it.

Created with MrDocs