[#absl-MutexLockMaybe] = xref:absl.adoc[absl]::MutexLockMaybe :relfileprefix: ../ :mrdocs: RAII helper like `MutexLock`, but a no‐op when the mutex pointer is null. == Synopsis Declared in `<absl/synchronization/mutex.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class MutexLockMaybe; ---- == Member Functions [cols="1,4"] |=== | Name| Description | xref:absl/MutexLockMaybe/2constructor-06.adoc[`MutexLockMaybe`] [.small]#[constructor]# | Constructors | xref:absl/MutexLockMaybe/2destructor.adoc[`~MutexLockMaybe`] [.small]#[destructor]# | Releases the held mutex if one was acquired. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#