This class implements a guard for automatically acquiring and releasing the lock on an associated bsls::BslLock object. This mechanism follows the RAII idiom whereby the lock on the BslLock associated with a guard object is acquired upon construction and released upon destruction.
Synopsis
Declared in <bsls_bsllock.h>
class BslLockGuard;
Member Functions
Name |
Description |
|
Create a guard object that conditionally manages the specified |
|
Destroy this guard object and release the lock on the object it manages (if any) by invoking the |
Release from management, with no effect, the object currently managed by this guard, if any. Note that |
Created with MrDocs