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

lock-name Function

Summary

Returns the name of a lock.

Package

mp

Signature

lock-name lock => name

Arguments
lock
A lock.
Values
name
A string.
Description

The function lock-name returns the name of lock, which was either passed as the name argument to make-lock or defaulted.

Examples
(let ((lock (mp:make-lock :name "my lock")))
  (mp:lock-name lock))
=> "my lock"
See also

lock
make-lock
with-lock
process-lock
process-unlock
lock-owner
19.4 Locks


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