Report a bug
If you spot a problem with this page, click here to create a Bugzilla issue.
Improve this page
Quickly fork, edit online, and submit a pull request for this page. Requires a signed-in GitHub account. This works well for small changes. If you'd like to make larger changes you may want to consider using a local clone.
conditionmodule 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.
- nothrow @safe this(Mutex
- Initializes a condition object which is associated with the supplied mutex object.Parameters:
The mutex with which this condition will be associated.Throws:SyncError on error.
- @property Mutex
- Gets the
mutexassociated with this condition.Returns:The
mutexassociated with this condition.
- Wait until notified.Throws:SyncError on error.
- Suspends the calling thread until a notification occurs or until the supplied time period has elapsed.Parameters:
The time to
valmust be non-negative.Throws:SyncError on error.Returns:
trueif notified before the timeout and
- Notifies one waiter.Throws:SyncError on error.
- Notifies all waiters.Throws:SyncError on error.
Copyright Sean Kelly 2005 - 2009. | Page generated by Ddoc on Sat Jan 21 14:32:00 2017