[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] inter-thread communication
From: |
Michele Simionato |
Subject: |
Re: [Chicken-users] inter-thread communication |
Date: |
Fri, 27 May 2005 01:46:38 -0400 |
On 5/27/05, felix winkelmann <address@hidden> wrote:
> 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)
Just what I needed! :-)
Michele Simionato