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 signalled 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.

See also

create-simple-process
make-lock
process-lock
schedule-timer
with-lock


LispWorks Reference Manual - 12 Mar 2008

NextPrevUpTopContentsIndex