absl::Mutex::AwaitWithDeadline

Unlocks this Mutex and blocks until cond is true or the deadline passes, then reacquires it in the same mode.

Synopsis

Declared in <absl/synchronization/mutex.h>

bool
AwaitWithDeadline(
    Condition const& cond,
    absl::Time deadline);

Return Value

true if cond is true on return.

Parameters

NameDescription
condThe condition to wait for.
deadlineThe absolute time after which to stop waiting.