absl::SimulatedClock::AwaitWithDeadline

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>

virtual
bool
AwaitWithDeadline(
    absl::Mutex* mu,
    absl::Condition const& cond,
    absl::Time deadline) override;

Return Value

true iff cond holds when returning.

Parameters

NameDescription
muThe mutex guarding cond, held at least in shared mode.
condThe condition to wait on.
deadlineThe simulated time by which to stop waiting.