Function MAKE-SEMAPHORE
Syntax:
make-semaphore &key name count => semaphore
Arguments and values:
name -> a string or nil.
count -> non-negative integer.
semaphore -> a semaphore object.
Description:
Creates a semaphore named name
and with initial value count
.
Exceptional situations:
Signals a condition of type
type-error
if name
is neither a string nor nil.
Signals a condition of type
type-error
if count
is not a non-negative integer (an unsigned-byte).
See also:
Notes:
On some implementations the library exposes the native type directly, while on others there is a custom implementations using condition variables and locks.