Generic FunctionPackage: mpToCDocOverviewCGDocRelNotesFAQIndexPermutedIndex
Allegro CL version 8.2
New since 8.2 release.

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.


Copyright (c) 1998-2012, Franz Inc. Oakland, CA., USA. All rights reserved.
Documentation for Allegro CL version 8.2. This page is new in the 8.2 release.
Created 2010.1.21.

ToCDocOverviewCGDocRelNotesFAQIndexPermutedIndex
Allegro CL version 8.2
New since 8.2 release.