with-semaphore-timeout ( semaphore timeout quot -- )
Counting semaphores

Prev:with-semaphore ( semaphore quot -- )


Vocabulary
concurrency.semaphores

Inputs
semaphorea semaphore
timeouta duration or f
quota quotation


Outputs
None

Word description
Calls the quotation with the semaphore held.

Definition


:: with-semaphore-timeout ( semaphore timeout quot -- )
semaphore timeout acquire-timeout quot
[ semaphore release ] finally ; inline