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

NextPrevUpTopContentsIndex

semaphore-release

Function
Summary

Releases units back to a semaphore.

Package

mp

Signature

semaphore-release sem &key count => flag

Arguments

sem

A semaphore.

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

make-semaphore
semaphore-acquire
semaphore-count
semaphore-wait-count


LispWorks User Guide and Reference Manual - 13 Feb 2015

NextPrevUpTopContentsIndex