Get the current wait count of a semaphore.
mp
semaphore-wait-count sem => wait-count
sem⇩ |
A semaphore. |
wait-count⇩ |
A non negative fixnum. |
The function semaphore-wait-count
returns the current number of units that other threads are waiting for from the semaphore sem. The value wait-count is 0 if the semaphore has no thread waiting for it.
The value can change in the semaphore after calling semaphore-wait-count
.
semaphore
make-semaphore
semaphore-acquire
semaphore-count
semaphore-release
19.7.3 Counting semaphores
LispWorks® User Guide and Reference Manual - 01 Dec 2021 19:30:51