All Manuals > LispWorks® User Guide and Reference Manual > 42 The MP Package

current-process-send Function

Summary

Sends an object as an event to the current process.

Package

mp

Signature

current-process-send object

Arguments
object
A Lisp object.
Description

The function current-process-send sends object as an event to the current process.

This is useful when you want to execute code as an event rather than in the current context. A typical example is when a CAPI callback needs to do something in the current process which is not appropriate to invoke inside the callback.

For the object to actually be processed as an event, the current process must process events sometime after current-process-send is called. In the "standard" situation, for example in a process started by CAPI, the object will be processed as an event by calling general-handle-event.

See also

process-send
general-handle-event
19.6.3 Communication between processes and synchronization


LispWorks® User Guide and Reference Manual - 01 Dec 2021 19:30:51