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

make-semaphore Function

Summary

Makes a semaphore.

Package

mp

Signature

make-semaphore &key name count => sem

Arguments
name
An object.
count
A non-negative fixnum.
Values
sem
Description

The function make-semaphore returns a new semaphore for use with semaphore-acquire and semaphore-release. The unit count is initialized to count, which defaults to 1. If name is supplied, the semaphore will have that name. If name is not supplied, the semaphore will be given a unique anonymous name.

See also

semaphore
semaphore-acquire
semaphore-count
semaphore-name
semaphore-release
semaphore-wait-count
19.7.3 Counting semaphores


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