# core.sync.condition

$(DDOC_SECTIONS The condition module provides a primitive for synchronized condition checking.
$(DDOC_LICENSE

this(Mutex m);
  Initializes a condition object which is associated with the supplied mutex object.
  Params:

  Mutex m | The mutex with which this condition will be associated.

  Throws:
  SyncException on error.
void wait();
  Wait until notified.
  Throws:
  SyncException on error.
bool wait(long period);
  Suspends the calling thread until a notification occurs or until the supplied time period has elapsed.
  Params:

  long period | The time to wait, in 100 nanosecond intervals. This value may be adjusted to equal to the maximum wait period supported by the target platform if it is too large.

  In:
  period must be non-negative.
  Throws:
  SyncException on error.
  Returns:
  true if notified before the timeout and false if not.
void notify();
  Notifies one waiter.
  Throws:
  SyncException on error.
void notifyAll();
  Notifies all waiters.
  Throws:
  SyncException on error.

Page generated by Ddoc. Copyright Sean Kelly 2005 - 2009.