The OpenD Programming Language

Semaphore.wait

Wait until the current count is above zero, then atomically decrement the count by one and return.

  1. void wait()
    class Semaphore
    void
    wait
    ()
  2. bool wait(Duration period)

Throws

SyncError on error.

Meta