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 m
| The mutex with which this condition will be associated. |
Gets the mutex
associated with this condition.
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 val
| The time to wait . |
val
must be non-negative. true
if notified before the timeout and false
if not.Notifies one waiter.
Notifies all waiters.
© 1999–2017 The D Language Foundation
Licensed under the Boost License 1.0.
https://dlang.org/phobos/core_sync_condition.html