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

~this
~this()
Undocumented in source.

Members

Functions

handleAddr
pthread_cond_t* handleAddr()
Undocumented in source. Be warned that the author may not have intended to support it.
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