NextPrevUpTopContentsIndex

claim-lock

Function
Summary

Set the owner of the specified lock to *current-process* .

Package

mp

Signature

claim-lock lock => bool

Arguments

lock

The specified lock

Values

bool

t if the lock was successfully claimed; nil otherwise.

Description

claim-lock attempts to set the owner of the specified lock to be *current-process* , at the same time setting its lock to t , and incrementing its count.

If the lock is successfully claimed, claim-lock returns t , otherwise it returns nil .

See also
make-lock
process-lock
process-unlock
release-lock
with-lock

LispWorks Reference Manual - 6 Apr 2005

NextPrevUpTopContentsIndex