BloombergLP::bslmt::WriteLockGuardUnlock::WriteLockGuardUnlock

Constructors

Synopses

Declared in <bslmt_writelockguard.h>

Create a scoped guard that unlocks the specified lock.

explicit
WriteLockGuardUnlock(T* lock);
» more...

Create a scoped guard that conditionally unlocks the specified lock.

WriteLockGuardUnlock(
    T* lock,
    bool alreadyUnlockedFlag);
» more...

Parameters

NameDescription
locklock object to unlock; may be null
alreadyUnlockedFlagtrue if lock is already unlocked