Releases units back to a semaphore.
mp
semaphore-release sem &key count => flag
sem⇩ |
A semaphore. |
count⇩ |
A non negative fixnum. |
flag⇩ |
A generalized boolean. |
The function semaphore-release
releases count units back to the semaphore sem.
It atomically increments the semaphore's unit count by count (which defaults to 1).
The returned flag is true if any other thread was waiting for the semaphore and false otherwise.
semaphore
make-semaphore
semaphore-acquire
semaphore-count
semaphore-wait-count
19.7.3 Counting semaphores
LispWorks® User Guide and Reference Manual - 01 Dec 2021 19:30:51