[#absl-SimulatedClock-AwaitWithDeadline] = xref:absl.adoc[absl]::xref:absl/SimulatedClock.adoc[SimulatedClock]::AwaitWithDeadline :relfileprefix: ../../ :mrdocs: Blocks until the condition is true or until the simulated clock is advanced to or beyond the wakeup time (or both). == Synopsis Declared in `<absl/time/simulated_clock.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual bool AwaitWithDeadline( xref:absl/Mutex.adoc[absl::Mutex]* mu, xref:absl/Condition.adoc[absl::Condition] const& cond, xref:absl/Time.adoc[absl::Time] deadline) override; ---- == Return Value `true` iff `cond` holds when returning. == Parameters [cols="1,4"] |=== | Name| Description | *mu* | The mutex guarding `cond`, held at least in shared mode. | *cond* | The condition to wait on. | *deadline* | The simulated time by which to stop waiting. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#