condition module provides a primitive for synchronized
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.|
mutex associated with this condition.
mutexassociated 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
valmust be non-negative.
trueif notified before the timeout and
Notifies one waiter.
Notifies all waiters.
© 1999–2017 The D Language Foundation
Licensed under the Boost License 1.0.