chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] inter-thread communication


From: felix winkelmann
Subject: Re: [Chicken-users] inter-thread communication
Date: Fri, 27 May 2005 07:34:41 +0200

On 5/27/05, Michele Simionato <address@hidden> wrote:
> I am starting to look at multithreading in Chicken and it is not clear to me
> how to do inter-thread communication. Here is my use case: I have multiple
> writers and a single reader; I would like the writers to write on a port and
> the reader to read from it, blocking while the data are not arriving.
> Is there a specific  mechanism to manage this typical situation? (i.e.
> in Python I have a Queue class for this).

You should use the `mailbox' extension for this:

http://www.call-with-current-continuation.org/eggs/mailbox.html

(these are just thread-safe queues)


cheers,
felix




reply via email to

[Prev in Thread] Current Thread [Next in Thread]