acquire ( semaphore -- )
Counting semaphores

Prev:<semaphore> ( n -- semaphore )
Next:acquire-timeout ( semaphore timeout -- )


Vocabulary
concurrency.semaphores

Inputs
semaphorea semaphore


Outputs
None

Word description
If the semaphore has a non-zero count, decrements it and returns immediately. Otherwise, waits for it to be released.

Definition