[#absl-CondVar] = xref:absl.adoc[absl]::CondVar :relfileprefix: ../ :mrdocs: A condition variable that can be signaled to wake threads waiting on state evaluated outside a `Mutex`. == Synopsis Declared in `<absl/synchronization/mutex.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class CondVar; ---- == Member Functions [cols="1,4"] |=== | Name| Description | xref:absl/CondVar/2constructor-00.adoc[`CondVar`] [.small]#[constructor]# | Constructs a `CondVar` allocated on the heap or the stack. | xref:absl/CondVar/EnableDebugLog.adoc[`EnableDebugLog`] | Causes all subsequent uses of this `CondVar` to be logged. | xref:absl/CondVar/Signal.adoc[`Signal`] | Signals this `CondVar`, waking at least one waiter if one exists. | xref:absl/CondVar/SignalAll.adoc[`SignalAll`] | Signals this `CondVar`, waking all waiters. | xref:absl/CondVar/Wait.adoc[`Wait`] | Atomically releases `mu` and blocks until signaled, then reacquires it. | xref:absl/CondVar/WaitWithDeadline.adoc[`WaitWithDeadline`] | Atomically releases `mu` and blocks until signaled or the deadline passes, then reacquires it. | xref:absl/CondVar/WaitWithTimeout.adoc[`WaitWithTimeout`] | Atomically releases `mu` and blocks until signaled or the timeout expires, then reacquires it. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#