absl::CondVar

A condition variable that can be signaled to wake threads waiting on state evaluated outside a Mutex.

Synopsis

Declared in <absl/synchronization/mutex.h>

class CondVar;

Member Functions

NameDescription
CondVar [constructor]Constructs a CondVar allocated on the heap or the stack.
EnableDebugLog Causes all subsequent uses of this CondVar to be logged.
Signal Signals this CondVar, waking at least one waiter if one exists.
SignalAll Signals this CondVar, waking all waiters.
Wait Atomically releases mu and blocks until signaled, then reacquires it.
WaitWithDeadline Atomically releases mu and blocks until signaled or the deadline passes, then reacquires it.
WaitWithTimeout Atomically releases mu and blocks until signaled or the timeout expires, then reacquires it.