The OpenD Programming Language

Condition.wait

Suspends the calling thread until a notification occurs or until the supplied time period has elapsed.

  1. void wait()
  2. void wait()
  3. void wait(bool _unused_)
  4. bool wait(Duration val)
  5. bool wait(Duration val)
  6. bool wait(Duration val, bool _unused_)
    class Condition
    bool
    wait
    (
    this Q
    )
    if (
    is(Q == Condition) ||
    is(Q == shared Condition)
    )
  7. this(Mutex m)
  8. this(Mutex m)

Parameters

val Duration

The time to wait.

In: val must be non-negative.

Return Value

Type: bool

true if notified before the timeout and false if not.

Throws

SyncError on error.

Meta