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

NextPrevUpTopContentsIndex

lock-owned-by-current-process-p

Function
Summary

Checks whether a lock is locked by the current thread.

Package

mp

Signature

lock-owned-by-current-process-p lock => result

Arguments

lock

A lock.

Values

result

A boolean.

Description

The function lock-owned-by-current-process-p checks whether the lock lock is locked by the current thread. If this returns nil, then lock is either unlocked or locked by another process.

If lock is a "sharing" lock, this also checks whether the current process has an exclusive lock on it. It ignores any shared lock.

See also

lock
make-lock
Locks


LispWorks User Guide and Reference Manual - 20 Sep 2017

NextPrevUpTopContentsIndex