concurrency.semaphores vocabulary
Factor handbook > Vocabulary index


Documentation
Counting semaphores

Meta-data
Tags:concurrency
Authors:Slava Pestov


Words

Tuple classes
ClassSuperclassSlots
negative-count-semaphore tuple
semaphore tuplecount threads


Ordinary words
WordStack effect
<semaphore>( n -- semaphore )
acquire( semaphore -- )
acquire-timeout( semaphore timeout -- )
negative-count-semaphore( -- * )
release( semaphore -- )
wait-to-acquire( semaphore timeout -- )
with-semaphore( semaphore quot -- )
with-semaphore-timeout( semaphore timeout quot -- )


Class predicate words
WordStack effect
negative-count-semaphore?( object -- ? )
semaphore?( object -- ? )


Files