Handbook
Glossary
release ( semaphore -- )
Counting semaphores
Prev:
acquire-timeout ( semaphore timeout -- )
Next:
with-semaphore ( semaphore quot -- )
Vocabulary
concurrency
.
semaphores
Inputs
semaphore
a
semaphore
Outputs
None
Word description
Increments a semaphore's count. If the count was previously zero, any threads waiting on the semaphore are woken up.
Definition
USING:
accessors
concurrency.conditions
math
;
IN:
concurrency.semaphores
:
release
( semaphore -- )
[
1
+
]
change-count
threads>>
notify-1
;