Constructors

Synopses

Declared in <bslmt_writelockguard.h>

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

explicit
WriteLockGuard(T* lock);

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

WriteLockGuard(
    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