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

NextPrevUpTopContentsIndex

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

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

Values

result

A boolean.

Description

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.

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 Guarantees and limitations when locking and unlocking.

See also

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


LispWorks User Guide and Reference Manual - 20 Sep 2017

NextPrevUpTopContentsIndex