From: Chaos Eternal <chaoseternal@shlug.org>
To: "Diogo F. S. Ramos" <dfsr@riseup.net>,
Panicz Maciej Godek <godek.maciek@gmail.com>
Cc: "guile-user@gnu.org" <guile-user@gnu.org>
Subject: Re: Passing objects between threads
Date: Sat, 10 Sep 2016 11:18:02 +0000 [thread overview]
Message-ID: <CAGyY8Nv4F3aTX4nc2Fu6Bm9RPkWsSViKKAu=9yiS-0R=g8dy5g@mail.gmail.com> (raw)
In-Reply-To: <87h99odotu.fsf@riseup.net>
As part of my (dont know when to finish) guile-termite project, I have a
thread-mailbox impletement.
https://github.com/ChaosEternal/guile-termite/tree/master/thread-mailbox
On Sat, Sep 10, 2016 at 6:36 PM Diogo F. S. Ramos <dfsr@riseup.net> wrote:
> > Hi,
> > is there any easy way to create a channel (queue) that could be used to
> > communicate between threads? In particular, if the queue is empty, I
> would
> > like the consumer to wait until something appears in it (pretty much like
> > the channels in Clojure)
>
> I don't know about Clojure, but I've written the attached program a
> while ago. It worked for my purposes, but it wasn't tested much.
>
>
next prev parent reply other threads:[~2016-09-10 11:18 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-10 9:37 Passing objects between threads Panicz Maciej Godek
2016-09-10 10:35 ` Diogo F. S. Ramos
2016-09-10 11:18 ` Chaos Eternal [this message]
2016-09-10 19:30 ` Panicz Maciej Godek
2016-09-10 19:29 ` Panicz Maciej Godek
2016-09-10 14:30 ` Chris Vine
2016-09-10 20:16 ` Panicz Maciej Godek
2016-09-10 21:36 ` Chris Vine
2016-09-11 18:34 ` Andy Wingo
2016-09-12 19:58 ` Panicz Maciej Godek
2016-09-12 23:10 ` Chris Vine
2016-09-15 19:37 ` Panicz Maciej Godek
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAGyY8Nv4F3aTX4nc2Fu6Bm9RPkWsSViKKAu=9yiS-0R=g8dy5g@mail.gmail.com' \
--to=chaoseternal@shlug.org \
--cc=dfsr@riseup.net \
--cc=godek.maciek@gmail.com \
--cc=guile-user@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).