ConditionVariable

This struct represents a condition variable as conceived by C.A.R. Hoare. As per Mesa type monitors however, "signal" has been replaced with "notify" to indicate that control is not transferred to the waiter when a notification is sent.

Constructors

this
this(int dummy)

Initializes a condition variable.

Destructor

A destructor is present on this object, but not explicitly documented in the source.

Members

Functions

notifyAll
void notifyAll()

Notifies all waiters.

notifyOne
void notifyOne()

Notifies one waiter.

wait
void wait(UncheckedMutex* assocMutex)

Wait until notified. The associated mutex should always be the same for this condition variable.

Meta