Condition

This class represents a condition variable as concieved 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(Mutex m)

Initializes a condition object which is associated with the supplied mutex object.

Destructor

~this
~this()
Undocumented in source.

Members

Functions

notify
void notify()

Notifies one waiter.

notifyAll
void notifyAll()

Notifies all waiters.

wait
void wait()

Wait until notified.

wait
bool wait(double period)

Suspends the calling thread until a notification occurs or until the supplied time period has elapsed. The supplied period may be up to a maximum of (uint.max - 1) milliseconds.

Meta