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

NextPrevUpTopContentsIndex

semaphore-wait-count

Function
Summary

Get the current wait count of a semaphore.

Package

mp

Signature

semaphore-wait-count sem => wait-count

Arguments

sem

A semaphore.

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

make-semaphore
semaphore-acquire
semaphore-count
semaphore-release


LispWorks User Guide and Reference Manual - 13 Feb 2015

NextPrevUpTopContentsIndex