Handbook
Glossary
acquire ( semaphore -- )
Counting semaphores
Prev:
<semaphore> ( n -- semaphore )
Next:
acquire-timeout ( semaphore timeout -- )
Vocabulary
concurrency
.
semaphores
Inputs
semaphore
a
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
IN:
concurrency.semaphores
:
acquire
( semaphore -- )
f
acquire-timeout
;