Generic Function | Package: mp | ToC | DocOverview | CGDoc | RelNotes | FAQ | Index | PermutedIndex
| Allegro CL version 9.0 Unrevised from 8.2 to 9.0. 8.2 version

## exclusive-locker-count

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-2019, Franz Inc. Oakland, CA., USA. All rights reserved.
This page was not revised from the 8.2 page.
Created 2012.5.30.

|  | ToC | DocOverview | CGDoc | RelNotes | FAQ | Index | PermutedIndex
| Allegro CL version 9.0 Unrevised from 8.2 to 9.0. 8.2 version