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

NextPrevUpTopContentsIndex

semaphore-count

Function
Summary

Gets the current unit count of a semaphore.

Package

mp

Signature

semaphore-count sem => count

Arguments

sem

A semaphore.

Values

count

A non negative fixnum.

Description

The function semaphore-count returns the current unit count of the semaphore sem. The value is 0 if the semaphore has no unit remaining.

Notes

The current unit count value can change in the semaphore after calling semaphore-count.

The value returned by semaphore-count is never negative.

See also

semaphore
make-semaphore
semaphore-acquire
semaphore-release
semaphore-wait-count
Counting semaphores


LispWorks User Guide and Reference Manual - 20 Sep 2017

NextPrevUpTopContentsIndex