Checks whether a lock is locked by the current thread.
mp
lock-owned-by-current-process-p lock => result
lock⇩ |
A lock. |
result |
A boolean. |
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.
LispWorks® User Guide and Reference Manual - 01 Dec 2021 19:30:51