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

Blocks until `cond` is `true` and the `Mutex` can be acquired, then atomically acquires it exclusively&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
LockWhen(xref:absl/Condition.adoc[Condition] const& cond);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *cond*
| The condition to wait for&period;
|===


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