| Allegro CL version 8.2 New since 8.2 release. |
Arguments: sharable-lock &optional clean-p
Query the exclusive state of a sharable-lock
instance.
The returned value is zero if the lock is not owned by an exclusive user at the moment of the call.
The returned value is 1, if an exclusive user is active or pending at the moment of the call.
The returned value is 2, if an exclusive user is active and another pending at the moment of the call.
The clean-p has effect only
to sharable-lock
instances
created with the auto-unlock-p to
make-sharable-lock specified
true (the default value is nil
). In that
case, when the clean-p argument is
non-nil
, the current owners of the lock are
scanned to remove any dead processes associated with the lock. The
returned count is the number of live processes associated with the
lock.
Note that this value may be obsolete and incorrect as soon as it is returned.
See Sharable locks in smp.htm.
See multiprocessing.htm for general information on multiprocessing in Allegro CL.
Copyright (c) 1998-2016, Franz Inc. Oakland, CA., USA. All rights reserved.
This page is new in the 8.2 release.
Created 2016.6.21.
| Allegro CL version 8.2 New since 8.2 release. |