Handbook
Glossary
<semaphore> ( n -- semaphore )
Counting semaphores
Prev:
semaphore
Next:
acquire ( semaphore -- )
Vocabulary
concurrency
.
semaphores
Inputs
n
a non-negative integer
Outputs
semaphore
a
semaphore
Word description
Creates a counting semaphore with the specified initial count.
Definition
USING:
dlists
kernel
math
;
IN:
concurrency.semaphores
:
<semaphore>
( n -- semaphore )
assert-non-negative
<dlist>
semaphore
boa
;