LispWorks User Guide and Reference Manual > 35 The MP Package

NextPrevUpTopContentsIndex

process-send

Function
Summary

Sends an object to the mailbox of a given process.

Package

mp

Signature

process-send process object &key change-priority =>

Arguments

process

A process

object

An object

change-priority

A fixnum, nil , t , or :default

Values

None.

Description

The process-send function queues object in the mailbox of the given process.

object can any kind of Lisp object, and it is up to the receiving process to interpret it.

process-send only sends the event: it is the responsibility of the receiving process to actually read the event and then interpret it. Reading is typically done by calling process-wait-for-event. Interpreting the event is up the caller of process-wait-for-event.

process-send actually uses the process-mailbox of process , creating a mailbox for process if it does not already have one. In principle object can be read by another process, by calling mailbox-read (or process-wait-for-event) on the mailbox.

If change-priority , which has a default value of :default , is non-nil, it controls how the priority of that process is calculated as follows:

See also

mailbox-send
process-wait-for-event


LispWorks User Guide and Reference Manual - 22 Dec 2009

NextPrevUpTopContentsIndex