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

Blocks until `cond` is `true` or the deadline passes, then atomically acquires this `Mutex` exclusively&period;

== Synopsis

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

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

== Return Value

`true` if `cond` is `true` on return&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *cond*
| The condition to wait for&period;
| *deadline*
| The absolute time after which to stop waiting&period;
|===


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