[#absl-MutexLockMaybe]
= xref:absl.adoc[absl]::MutexLockMaybe
:relfileprefix: ../
:mrdocs:

RAII helper like `MutexLock`, but a no&hyphen;op when the mutex pointer is null&period;

== Synopsis

Declared in `&lt;absl&sol;synchronization&sol;mutex&period;h&gt;`

[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[`&#126;MutexLockMaybe`] [.small]#[destructor]#
| Releases the held mutex if one was acquired&period;
|===



[.small]#Created with https://www.mrdocs.com[MrDocs]#
