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

Name

Description

mu

The mutex held by the calling thread.

deadline

The absolute time after which to stop waiting.

Created with MrDocs