Constructors

Synopses

Declared in <bslmt_writelockguard.h>

Create a guard that acquires a write lock on lock.

explicit
LockWriteGuard(T* lock);

Create a guard that conditionally acquires a write lock on lock.

LockWriteGuard(
    T* lock,
    bool alreadyLockedFlag);

Parameters

Name

Description

lock

lock object to acquire for writing; may be null

alreadyLockedFlag

true if lock is already write‐locked

Created with MrDocs