Next Previous Up Top Contents Index

3 The COMM package

with-noticed-socket-stream

Macro

Package

comm

Signature

with-noticed-socket-stream stream &body body

Arguments

stream

A stream created usingopen-tcp-stream.

body

Code to be executed while the stream is "noticed".

Description

If you do aprocess-wait inside the body of some code, and the Lispworks system has no more processes to run, it will wait for some external event. This macro alerts the system to the fact that any event on the socket associated with the given stream should cause the system wake and check the predicates for processes doing aprocess-wait.
The net effect is that, without using this macro, data coming into the socket will not cause a wake-up. The socket will only be checked again when another event (such as a mouse event) causes the system to wake and re-check the wait reasons for all waiting processes.
The macro is designed to be used with streams created by the function open-tcp-stream.
See Also

open-tcp-stream


LispWorks Reference Manual - 15 Oct 1998

Next Previous Up Top Contents Index

Generated with Harlequin WebMaker