[#absl-Mutex-AwaitWithTimeout] = xref:absl.adoc[absl]::xref:absl/Mutex.adoc[Mutex]::AwaitWithTimeout :relfileprefix: ../../ :mrdocs: Unlocks this `Mutex` and blocks until `cond` is `true` or the timeout expires, then reacquires it in the same mode. == Synopsis Declared in `<absl/synchronization/mutex.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool AwaitWithTimeout( xref:absl/Condition.adoc[Condition] const& cond, xref:absl/Duration.adoc[absl::Duration] timeout); ---- == Return Value `true` if `cond` is `true` on return. == Parameters [cols="1,4"] |=== | Name| Description | *cond* | The condition to wait for. | *timeout* | The maximum time to wait. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#