Re: Passing objects between threads

2016-09-10 Thread Chris Vine
On Sat, 10 Sep 2016 22:16:22 +0200 Panicz Maciej Godek wrote: > I agree, it is a simple concept, and easily implementable using > condition variables. However, it would probably be nicer if guile > provided some standard solution, instead of forcing every programmer > to coming up with their own o

Re: Passing objects between threads

2016-09-10 Thread Panicz Maciej Godek
I agree, it is a simple concept, and easily implementable using condition variables. However, it would probably be nicer if guile provided some standard solution, instead of forcing every programmer to coming up with their own ones. I've noticed that there's a module (ice-9 occam-channel) bundled

Re: Passing objects between threads

2016-09-10 Thread Panicz Maciej Godek
guile-termite looks like a great project, fingers crossed :) thanks! 2016-09-10 13:18 GMT+02:00 Chaos Eternal : > 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 > > O

Re: Passing objects between threads

2016-09-10 Thread Panicz Maciej Godek
Looks very nice, thanks. I'll certainly draw some inspiration from it! 2016-09-10 12:35 GMT+02:00 Diogo F. S. Ramos : > > 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 c

Re: Passing objects between threads

2016-09-10 Thread Chris Vine
On Sat, 10 Sep 2016 11:37:55 +0200 Panicz Maciej Godek 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 t

Re: Passing objects between threads

2016-09-10 Thread Chaos Eternal
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 wrote: > > Hi, > > is there any easy way to create a channel (queue) tha

Re: Passing objects between threads

2016-09-10 Thread Diogo F. S. Ramos
> 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 w

Passing objects between threads

2016-09-10 Thread Panicz Maciej Godek
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) regs, Panicz