Bordeaux-Threads

Version 0.8.8

Common Lisp threading library

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:

semaphore

Notes:

On some implementations the library exposes the native type directly, while on others there is a custom implementations using condition variables and locks.

Last updated on 2022-01-07
Published on 2022-01-07
Edit on GitHub