From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Panicz Maciej Godek Newsgroups: gmane.lisp.guile.user Subject: Re: Passing objects between threads Date: Sat, 10 Sep 2016 21:30:37 +0200 Message-ID: References: <87h99odotu.fsf@riseup.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: blaine.gmane.org 1473535876 2087 195.159.176.226 (10 Sep 2016 19:31:16 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 10 Sep 2016 19:31:16 +0000 (UTC) Cc: "guile-user@gnu.org" To: Chaos Eternal Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sat Sep 10 21:31:11 2016 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1binzY-0008Cz-1D for guile-user@m.gmane.org; Sat, 10 Sep 2016 21:31:08 +0200 Original-Received: from localhost ([::1]:35471 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1binzW-00056Y-4y for guile-user@m.gmane.org; Sat, 10 Sep 2016 15:31:06 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42805) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1binz7-00056H-DT for guile-user@gnu.org; Sat, 10 Sep 2016 15:30:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1binz5-0005dc-7G for guile-user@gnu.org; Sat, 10 Sep 2016 15:30:40 -0400 Original-Received: from mail-wm0-x22b.google.com ([2a00:1450:400c:c09::22b]:36866) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1binz4-0005dO-L3 for guile-user@gnu.org; Sat, 10 Sep 2016 15:30:39 -0400 Original-Received: by mail-wm0-x22b.google.com with SMTP id w12so84261069wmf.0 for ; Sat, 10 Sep 2016 12:30:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=HBBy8V7RJmd+k6nA9j44sY8tAAC0Qk28kgUrP+3FdG0=; b=OoCVGGLLamo8KQomvkWKpWMP6R7Mkittm8IUZCoY23CCuZd86d3syoSejxlLDinVWp xal1PgKKWygk/WWJhvTAU1YIR8V+Fv8w9HS6qYXQZsz3ExjEirv+pIiY24IWgI8NtEX4 J7dVEJnWhW60stTzRo8B2lOGW2/exkynsQJxOYZamQieFFKAGnP/XnzF/yk74ZAE7BY3 YrMZVJ2QsxF+LoGfIGXZsSVRubO0pZdzUPf4pbiHF/mTz2HqBPVn+bbA3r32sWpY1V8C zcSAVshxbijSI/8EDXdjS3QsYMfPX26DIghoC/fJkcrGMjsmqqX2iaPZKIZ8+1xlljoY ecmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=HBBy8V7RJmd+k6nA9j44sY8tAAC0Qk28kgUrP+3FdG0=; b=GXEsQWkxGk+wlUM3kIXdI3q0kYTa74YxuIG+M1fBqXpN1bKxagcH/v+wox9q1erKmm UBntovsmdoEavZwFflhotyaTmsy1JRreMIPcSuqGFlgSx2H5tlKUi+vJonXSUiGgwMG6 Y3k4DekRirTEIca5hPfW5Z/Y0PwDChYy/qPi9LI8PMKCN6PYrTgJF0Fu9GZ/1M1QQF+M 0P9E9vv/0KIp7cUNv0eYwZ6ZV8XKiSi7rspoxZrlzpJD9qvcR43buqXEFWfUpQ/4N/PY ZjifhMfQzE0Y67jpA+Oc0Pw0UjfR5JHTw3Je1QuMKR9CUSZGeQEB3/Hg2RfHrb3kuVCw dU9A== X-Gm-Message-State: AE9vXwP8PZpX908uvhXWItDMTi7VFjkSwaYO7Hfb4KcqjmiWnex7C4sxzIP+0tt36J3tNZVtJLgtz4nq2zpr+A== X-Received: by 10.28.214.130 with SMTP id n124mr3558047wmg.37.1473535837942; Sat, 10 Sep 2016 12:30:37 -0700 (PDT) Original-Received: by 10.80.182.242 with HTTP; Sat, 10 Sep 2016 12:30:37 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:400c:c09::22b X-Content-Filtered-By: Mailman/MimeDel 2.1.21 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.org gmane.lisp.guile.user:12897 Archived-At: 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 > > 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) 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. >> >>