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

NextPrevUpTopContentsIndex

process-unlock

Function
Summary

Relinquishes a lock held by the current process.

Package

mp

Signature

process-unlock lock &optional errorp => result

Arguments

lock

The lock to be relinquished.

errorp

When this is t, an error is signaled if *current-process* is not the owner of the lock. The default is t.

Values

result

A boolean.

Description

Attempts to release a lock. If the lock is owned by *current-process*, process-unlock decrements an internal count. If this lock count is then zero, the lock is released. Note that process-unlock relates only on Lisp processes.

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

Notes

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

See also

make-lock
process-exclusive-unlock
process-lock
with-lock


LispWorks User Guide and Reference Manual - 13 Feb 2015

NextPrevUpTopContentsIndex