Appendix C The CLIM-SYS Package

C.2 Multi-Processing

Most Lisp implementations provide some form of multi-processing. CLIM provides a set of functions that implement a uniform interface to the multi-processing functionality.

make-process [Function]

Arguments:
function&key name
Summary:
Creates a process named name. The new process will evaluate the function function. On systems that do not support multi-processing, make-process will signal an error.

destroy-process [Function]
Arguments:
process
Summary:
Terminates the process process. process is an object returned by make-process.

current-process [Function]
Summary:
Returns the currently running process, which will be the same kind of object as would be returned by make-process.

all-processes [Function]
Summary:
Returns a sequence of all of the processes.

process-wait [Function]
Arguments:
reason predicate
Summary:
Causes the current process to wait until predicate returns t. reason is a string or symbol that gives an explanation for the wait. On systems that do not support multi-processing, process-wait will loop until predicate returns t.

process-wait-with-timeout [Function]
Arguments:
reason timeout predicate
Summary:
Causes the current process to wait until predicate returns t or the number of seconds specified by timeout has elapsed. reason is a string or symbol that gives an explanation for the wait. On systems that do not support multi-processing, process-wait-with-timeout loops until predicate returns t or the timeout elapses.

process-yield [Function]
Summary:
Allows other processes to run. On systems that do not support multi-processing, this does nothing.

process-interrupt [Function]
Arguments:
process function
Summary:
Interrupts the process process and causes it to evaluate the function function. On systems that do not support multi-processing, this is equivalent to funcall'ing function.

without-scheduling [Macro]
Arguments:
&body body
Summary:
Evaluates body in a context that is guaranteed to be free from interruption by other processes. On systems that do not support multi-processing, without-scheduling is equivalent to progn.


CLIM 2.0 User's Guide - OCT 1998

Generated with Harlequin WebMaker