absl::MutexLockMaybe

RAII helper like MutexLock, but a no-op when the mutex pointer is null.

Synopsis

Declared in <absl/synchronization/mutex.h>

class MutexLockMaybe;

Member Functions

NameDescription
MutexLockMaybe [constructor]Constructors
~MutexLockMaybe [destructor]Releases the held mutex if one was acquired.