described here should be considered
experimental, subject to API changes without notice.
— Structure: sb-thread:semaphore
Class precedence list:
semaphore, structure-object, t
Semaphore type. The fact that a
semaphore is a
should be considered an implementation detail, and may change in the
— Function: sb-thread:make-semaphore &key name count
Create a semaphore with the supplied
— Function: sb-thread:semaphore-count instance
Returns the current count of the semaphore
— Function: sb-thread:semaphore-name instance
The name of the semaphore
— Function: sb-thread:signal-semaphore semaphore &optional n
Increment the count of
n. If there are threads waiting
on this semaphore, then
n of them is woken up.
— Function: sb-thread:wait-on-semaphore semaphore
Decrement the count of
semaphore if the count would not be
negative. Else blocks until the semaphore can be decremented.