Next Previous Up Top Contents Index

13 The MP Package

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 tot, and incrementing its count.
If the lock is successfully claimed,claim-lock returnst, otherwise it returnsnil.
See also

make-lock
process-lock
process-unlock
release-lock
with-lock


LispWorks Reference Manual - 15 Oct 1998

Next Previous Up Top Contents Index

Generated with Harlequin WebMaker