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.
Notes
The value can change in the semaphore after calling
semaphore-wait-count
.