All Manuals > LispWorks® User Guide and Reference Manual > 42 The MP Package

semaphore-wait-count Function

Summary

Get the current wait count of a semaphore.

Package

mp

Signature

semaphore-wait-count sem => wait-count

Arguments
sem
Values
wait-count
A non negative fixnum.
Description

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.

See also

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