From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Chaos Eternal Newsgroups: gmane.lisp.guile.user Subject: Re: Passing objects between threads Date: Sat, 10 Sep 2016 11:18:02 +0000 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 1473506331 28022 195.159.176.226 (10 Sep 2016 11:18:51 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 10 Sep 2016 11:18:51 +0000 (UTC) Cc: "guile-user@gnu.org" To: "Diogo F. S. Ramos" , Panicz Maciej Godek Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sat Sep 10 13:18:47 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 1bigJ2-0006Sm-Qc for guile-user@m.gmane.org; Sat, 10 Sep 2016 13:18:44 +0200 Original-Received: from localhost ([::1]:34055 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bigIy-0005k6-OR for guile-user@m.gmane.org; Sat, 10 Sep 2016 07:18:40 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60585) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bigIZ-0005jw-ES for guile-user@gnu.org; Sat, 10 Sep 2016 07:18:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bigIY-0001A0-5q for guile-user@gnu.org; Sat, 10 Sep 2016 07:18:15 -0400 Original-Received: from mail-oi0-x231.google.com ([2607:f8b0:4003:c06::231]:33455) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bigIX-00019w-Vz for guile-user@gnu.org; Sat, 10 Sep 2016 07:18:14 -0400 Original-Received: by mail-oi0-x231.google.com with SMTP id y2so199141595oie.0 for ; Sat, 10 Sep 2016 04:18:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=shlug-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=WAWh9YpOlLb5Afjh/uBW/H8yH14RxtM5szjDn1Ho7W8=; b=kQOEf2qT/XtzoKrZVAs8aef1gkIzXZL/bdOv9o5pp+VnSnyf8TGRLyjdZ3/SJuuhG/ 4HkM20hva7n5u1pOgOaKNGLeTw5so7z2y+vCZLbLnkxm4RJjUEklzFd0hwoRRFcrbumd cw/acuXLhmwn+zejAyUYeUzMti1Hel32XppbsVNQzBIyU9M1JtJkfABvGUe8PkcJm9tP u69tLicBavfCm6OKrwlOyVP/pczxKxs7w/53RLdeWf9iPUlzOmdK9tu+MUq8YSoqycEH 45amEE5YJQIy1vNF2m86S/PmGGpsC1QpYsjBxH6gYyKtYzr7coLPZgjRRfTA6m1jafCO OD9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=WAWh9YpOlLb5Afjh/uBW/H8yH14RxtM5szjDn1Ho7W8=; b=gjIGbs82x6n8ZZlBN4NmRg7DZYSprp1ZiPeXBeiMqjp2FYtAVKaf7zFB0Akt5tFAyD WK0TLiDdgs7zwkHmLAjQ0DZVVfaGFXTqhtyvGgk3T1EAk9Pduv4u4sN4IK99IiA5Wmmr gyAm3gNBTv9vIDhyBaILGEm9TYCd1HrU017w/9i+iULAz0e5Qm3AkY2GsI3Mq2Eu0G7h vKTTlTvfXXkWmY6NZn3cpgHgd/ZWr84gRCKvi1+jM7YP8x8k7v+roKBYGEotvbe6gau7 Qsq1532fAsR3QgqEt+ZcXWMksN2dOHAdRAv5A4dRsKn2O8P8bIVAarctSzWCg6wsXRDs I20g== X-Gm-Message-State: AE9vXwOR+ltZ8fSte25+TfOqIE/F0SdnGUlFSZ7Z/l7oVVVwe7dYP85PVGd+Fplh8VtsDvLG4mLVwdLopJemHA== X-Received: by 10.157.6.41 with SMTP id 38mr9990076otn.135.1473506293005; Sat, 10 Sep 2016 04:18:13 -0700 (PDT) In-Reply-To: <87h99odotu.fsf@riseup.net> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:4003:c06::231 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:12894 Archived-At: 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. > >