Generic FunctionPackage: mpToCDocOverviewCGDocRelNotesFAQIndexPermutedIndex
Allegro CL version 10.0
Unrevised from 9.0 to 10.0.
9.0 version

sharable-lock-unlock

Arguments: sharable-lock mode

Release a sharable-lock in the specified mode.

The value returned is nil or one of the keywords :unlocked or :recursive.

The mode argument must be one of the keywords :shared or :exclusive.

If the lock is locked in the specifed mode, the locker count is decremented. If the count is still not zero, the keyword :recursive is returned. If the count is zero, the keyword :unlocked is returned.

If the lock is not locked, and safe-p (when the lock was created with make-sharable-lock) is nil, nil is returned.

Note that a call to sharable-lock-unlock can only release a lock acquired with a call to sharable-lock-lock. The locks established with the with-shared-lock and with-exclusive-lock macros can only be released by exiting the dynamic context of the macro calls.

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 9.0 page.
Created 2015.5.21.

ToCDocOverviewCGDocRelNotesFAQIndexPermutedIndex
Allegro CL version 10.0
Unrevised from 9.0 to 10.0.
9.0 version