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

process-unlock Function

Summary

Unlocks a lock held by the current process.

Package

mp

Signature

process-unlock lock &optional errorp => result

Arguments
lock
The lock.
errorp
A generalize boolean.
Values
result
A boolean.
Description

The function process-unlock attempts to unlock lock. If lock is owned by *current-process*, then process-unlock decrements an internal count. If this count is then zero, lock is unlocked. Note that process-unlock relates only on Lisp processes.

If errorp is non-nil (the default), an error is signaled if *current-process* is not the owner of lock. Otherwise process-unlock does nothing.

result is t if the lock was released, and nil otherwise.

Notes

process-sharing-unlock is guaranteed to successfully unlock lock, but is not guaranteed to return, as described in 19.4.3 Guarantees and limitations when locking and unlocking.

See also

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


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