Interface Semaphore
access this type via: os.Semaphore (provides, requires or uses)
A semaphore.
Functions
Semaphore()
void wait()
void signal()
Semaphore()
Instantiate a new semaphore object, initialised with a count of zero.
void wait()
Decrement the semaphore's value, or if zero wait until a thread calls signal().
void signal()
Iincrement semaphore's value, unblocking a wait() if the semaphore was previously zero.