process-lock-locker

$Revision: 5.0.2.4 $

Function

Package: MULTIPROCESSING

Arguments: (lock)

This function returns the value stored in lock, which is usually the process holding the lock, and returns nil if lock is not locked. 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 multiprocessing.htm for general information on multiprocessing and process locks in Allegro CL.

The general documentation description is in introduction.htm. The index in index.htm.

Copyright (C) 1998-1999, Franz Inc., Berkeley, CA. All Rights Reserved.