Unlocks a lock held by the current process.
mp
process-unlock lock &optional errorp => result
| lock⇩ |
The lock. |
| errorp⇩ |
A generalize boolean. |
| result⇩ |
A boolean. |
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.
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.
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