LispWorks User Guide and Reference Manual > 35 The MP Package

NextPrevUpTopContentsIndex

process-wait

Function
Summary

Suspends the current process until a condition is true.

Package

mp

Signature

process-wait wait-reason wait-function &rest wait-arguments =>

Arguments

wait-reason

A string describing the reason that the process is waiting.

wait-function

A function designator.

wait-arguments

The arguments that wait-function is applied to.

Values

None.

Description

The function process-wait suspends the current Lisp process until the predicate wait-function applied to wait-arguments returns t . This is tested periodically.

wait-function must not do a non-local exit. wait-function should not have side effects and, since it is called frequently, it should be efficient.

wait-reason allows you to find out why a process is waiting via the function process-whostate.

See also

process-wait-with-timeout
process-whostate


LispWorks User Guide and Reference Manual - 22 Dec 2009

NextPrevUpTopContentsIndex