Gets the current unit count of a semaphore.
mp
semaphore-count sem => count
sem⇩ |
A semaphore. |
count |
A non negative fixnum. |
The function semaphore-count
returns the current unit count of the semaphore sem. The value is 0 if the semaphore has no unit remaining.
The current unit count value can change in the semaphore after calling semaphore-count
.
The value returned by semaphore-count
is never negative.
semaphore
make-semaphore
semaphore-acquire
semaphore-release
semaphore-wait-count
19.7.3 Counting semaphores
LispWorks® User Guide and Reference Manual - 01 Dec 2021 19:30:51