ACL -> Stream from one thread to the other

From: Miguel Arroz (arroz_at_guiamac.com)
Date: 07/28/04


Date: Wed, 28 Jul 2004 15:36:06 GMT

Hi!

  I nned to use a stream like a UNIX pipe, to transfer information
(actually a character) between two different LISP threads.

  The problem is this: I have a thread that is blocked in
wait-for-input-available, waiting for data to arrive to a UDP socket.
Also, that thread has a list of messages that pther threads "send" to it.
As the thread is blocked, I have to do something to unblock it, in order
to take care of the message list. So, I was thinking about using this
stream, like a pipe, and add it to the "wait-for-input-available" stream
list. The problem is that I cannot find any useful info to do this. There
are streams to write a file, streams to write in sockets... but how can I
make a stream that has "both ends" inside the same LISP orocess, in
different threads? Sort of like a UNIX pipe.

  If you know a better way to unblock the wait-for-input-available
function, let me know.

  Yours

Miguel Arroz