absl::CondVar::WaitWithDeadline

Atomically releases mu and blocks until signaled or the deadline passes, then reacquires it.

Synopsis

Declared in <absl/synchronization/mutex.h>

bool
WaitWithDeadline(
    Mutex* mu,
    absl::Time deadline);

Return Value

true if the deadline passed without this CondVar being signaled.

Parameters

NameDescription
muThe mutex held by the calling thread.
deadlineThe absolute time after which to stop waiting.