| Allegro CL version 10.1 Unrevised from 10.0 to 10.1. 10.0 version |
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-2022, Franz Inc. Lafayette, CA., USA. All rights reserved.
This page was not revised from the 10.0 page.
Created 2019.8.20.
| Allegro CL version 10.1 Unrevised from 10.0 to 10.1. 10.0 version |