The condition module provides a primitive for synchronized condition checking.
This class 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.
Initializes a condition object which is associated with the supplied mutex object.
|Mutex ||The mutex with which this condition will be associated.|
Gets the mutex associated with this condition.
Wait until notified.
Suspends the calling thread until a notification occurs or until the supplied time period has elapsed.
|Duration ||The time to wait.|
Notifies one waiter.
Notifies all waiters.
© 1999–2019 The D Language Foundation
Licensed under the Boost License 1.0.