[#absl-MutexLockMaybe-2constructor-00] = xref:absl.adoc[absl]::xref:absl/MutexLockMaybe.adoc[MutexLockMaybe]::MutexLockMaybe :relfileprefix: ../../ :mrdocs: Acquires `mu` exclusively once `cond` holds if it is non‐null. == Synopsis Declared in `<absl/synchronization/mutex.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit MutexLockMaybe( xref:absl/Mutex.adoc[Mutex]* mu, xref:absl/Condition.adoc[Condition] const& cond); ---- == Parameters [cols="1,4"] |=== | Name| Description | *mu* | The mutex to lock, or null for a no‐op. | *cond* | The condition to wait for before locking. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#