[#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`&period;

== Synopsis

Declared in `&lt;absl&sol;synchronization&sol;mutex&period;h&gt;`

[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&period;
| xref:absl/CondVar/EnableDebugLog.adoc[`EnableDebugLog`] 
| Causes all subsequent uses of this `CondVar` to be logged&period;
| xref:absl/CondVar/Signal.adoc[`Signal`] 
| Signals this `CondVar`, waking at least one waiter if one exists&period;
| xref:absl/CondVar/SignalAll.adoc[`SignalAll`] 
| Signals this `CondVar`, waking all waiters&period;
| xref:absl/CondVar/Wait.adoc[`Wait`] 
| Atomically releases `mu` and blocks until signaled, then reacquires it&period;
| xref:absl/CondVar/WaitWithDeadline.adoc[`WaitWithDeadline`] 
| Atomically releases `mu` and blocks until signaled or the deadline passes, then reacquires it&period;
| xref:absl/CondVar/WaitWithTimeout.adoc[`WaitWithTimeout`] 
| Atomically releases `mu` and blocks until signaled or the timeout expires, then reacquires it&period;
|===



[.small]#Created with https://www.mrdocs.com[MrDocs]#
