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

mailbox-send Function

Summary

Adds an object to a mailbox.

Package

mp

Signature

mailbox-send mailbox object

Arguments
mailbox
object
An object.
Description

The function mailbox-send sends object to mailbox. The object is queued in the mailbox for retrieval by the reader.

When objects are read from from the mailbox (using mailbox-read or higher level functions such as mailbox-wait-for-event), they are read in the order in which they were added to the mailbox.

Notes

If mailbox is full, mailbox-send expands it. In situations where the mailbox can grow too much, you can use mailbox-send-limited instead.

See also

mailbox-empty-p
mailbox-peek
mailbox-read
mailbox-send-limited
mailbox-count
mailbox-size
process-send
make-mailbox
19.6.3 Communication between processes and synchronization


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