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:29:53 +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 1473535832 16831 195.159.176.226 (10 Sep 2016 19:30:32 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 10 Sep 2016 19:30:32 +0000 (UTC) Cc: "guile-user@gnu.org" To: "Diogo F. S. Ramos" Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sat Sep 10 21:30:28 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 1binyo-000380-0k for guile-user@m.gmane.org; Sat, 10 Sep 2016 21:30:22 +0200 Original-Received: from localhost ([::1]:35465 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1binyl-0004pJ-Te for guile-user@m.gmane.org; Sat, 10 Sep 2016 15:30:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42611) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1binyP-0004pD-9e for guile-user@gnu.org; Sat, 10 Sep 2016 15:29:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1binyN-0005IU-8U for guile-user@gnu.org; Sat, 10 Sep 2016 15:29:56 -0400 Original-Received: from mail-wm0-x230.google.com ([2a00:1450:400c:c09::230]:36556) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1binyM-0005IA-Ik for guile-user@gnu.org; Sat, 10 Sep 2016 15:29:55 -0400 Original-Received: by mail-wm0-x230.google.com with SMTP id b187so80210090wme.1 for ; Sat, 10 Sep 2016 12:29:54 -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=oZ0gBh88w4o9+B2SNStmXHuTQ9TAYbVCTr3IMfmn0HU=; b=wEyqTOyoMGwkTTQdbr3Obhxkon1fH/bWCS9oMu/4RISBfZLV7kFdCk+Cpeya4BnhO3 1OP7v3fYnDWESfJiCsaKqYVSwYL+IdfKOKl/VQrg7YaaYJNIhnaCQquK9SvnPsqAVTbV yKTsD6yUFK8N//q3nd6xzTTPUd0r5OKmcOp3hcocPJkAyQEPY/EaQUvYNWrlSD/Onr6s gRELXgFnPMmml4fCOMGTcYlZlD3bizC58pCM6Qm3QWK/bQGL7JCqyhpQh8jmtx2SR+x0 2S0JZLUm8qvX0YNxOC7Jk+h+fPX4V6Sq9jXz6iYeidlc7Zr3y91WbFLxCUHEP974nXz6 DyaA== 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=oZ0gBh88w4o9+B2SNStmXHuTQ9TAYbVCTr3IMfmn0HU=; b=jIG0dEfBq0fTxAFHNwtV8bmyb5/wAZN2/h106OnYUOMPnA3xD6lVwtsWqOyTVyXx7Z 0TPCg+GF0FH0iQisGrCOcoUWsl+mh/+/OFRX1whIEwqGlzdoa2pUCLtEURxeWsj/Ay3E sSecBPJLZEJ5u63LsCnCZ1jQEGmOObNY6APzFonYld9shDS6HT7JNQ1+DVfJWexR3eQc dQYCCxYZM8LeZ+OYFR4Oy+SbSBECHjwnfQLkceUhObDnP6C76UDE5F7cGO+KimcfEKYF KKbNm06k000PTPc6BoO4BSPcC0Arz6CYzUXoKYLir4XcpzI1drqkMRiAb3IiaU84rTl7 01Ow== X-Gm-Message-State: AE9vXwMJCuBgyNb63FmZbsdwkJ8SFd7AazmGKXCb4Bc3hR2GCH32bnjIuhS8o8twpVHrt1PSKr9l7UQzykptNQ== X-Received: by 10.194.78.74 with SMTP id z10mr8043445wjw.68.1473535793839; Sat, 10 Sep 2016 12:29:53 -0700 (PDT) Original-Received: by 10.80.182.242 with HTTP; Sat, 10 Sep 2016 12:29:53 -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: 2a00:1450:400c:c09::230 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:12896 Archived-At: 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 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. > >