This class template implements a guard for acquisition and release of write synchronization resources (i.e., writer locks).

Synopsis

Declared in <bslmt_writelockguard.h>

template<class T>
class WriteLockGuard;

Member Functions

Name

Description

WriteLockGuard [constructor]

Constructors

~WriteLockGuard [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.

Derived Classes

Name

Description

LockWriteGuard

DEPRECATED: Use WriteLockGuard instead.

Created with MrDocs