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

semaphore-release Function

Summary

Releases units back to a semaphore.

Package

mp

Signature

semaphore-release sem &key count => flag

Arguments
sem
count
A non negative fixnum.
Values
flag
A generalized boolean.
Description

The function semaphore-release releases count units back to the semaphore sem.

It atomically increments the semaphore's unit count by count (which defaults to 1).

The returned flag is true if any other thread was waiting for the semaphore and false otherwise.

See also

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


LispWorks® User Guide and Reference Manual - 01 Dec 2021 19:30:51