FunctionPackage: mpToCDocOverviewCGDocRelNotesIndexPermutedIndex
Allegro CL version 6.2
Unrevised from 6.1

process-lock-locker

Arguments: struct

This function returns the value stored the locker slot of the lock object specified by the lock argument. This value is usually the process holding the lock. If the value in the slot is nil, the lock is free. The following idiom is useful when a process wants to seize a lock but not block if it is already seized:

  (without-interrupts
    (if (process-lock-locker lock)
            (...) ;; Lock not free
                  ;; do something else.

      (process-lock lock))) ;; Seize the lock. 

See process-lock, process-unlock, with-process-lock and make-process-lock.

See multiprocessing.htm for general information on multiprocessing in Allegro CL and see Process locks (both models) for more information on process locks in Allegro CL.


Copyright (c) 1998-2002, Franz Inc. Oakland, CA., USA. All rights reserved.
Documentation for Allegro CL version 6.2. This page was not revised from the 6.1 page.
Created 2002.2.26.

ToCDocOverviewCGDocRelNotesIndexPermutedIndex
Allegro CL version 6.2
Unrevised from 6.1