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

Name

Description

MutexLockMaybe [constructor]

Constructors

~MutexLockMaybe [destructor]

Releases the held mutex if one was acquired.

Created with MrDocs