From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ludo@gnu.org (Ludovic =?iso-8859-1?Q?Court=E8s?=) Newsgroups: gmane.lisp.guile.devel Subject: Re: deadlock in scm_join_thread(_timed) Date: Sun, 24 May 2009 16:03:49 +0200 Message-ID: <87d49yfvi2.fsf@gnu.org> References: <2bc5f8210805242233x3ac66a60r6d135abd1d8a80a5@mail.gmail.com> <49dd78620805250616n47ae2ecfjfe4015f066199d24@mail.gmail.com> <2bc5f8210805261953s18bef0b9i9e32ee7cb4486c0e@mail.gmail.com> <87my97zl6u.fsf@arudy.ossau.uklinux.net> <87iqjvze2u.fsf@arudy.ossau.uklinux.net> <87ljor76pg.fsf@gnu.org> <87my93zaud.fsf@arudy.ossau.uklinux.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1243174247 11460 80.91.229.12 (24 May 2009 14:10:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 24 May 2009 14:10:47 +0000 (UTC) Cc: guile-devel@gnu.org To: Neil Jerram Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Sun May 24 16:10:41 2009 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1M8EPP-0001Rx-Ku for guile-devel@m.gmane.org; Sun, 24 May 2009 16:10:39 +0200 Original-Received: from localhost ([127.0.0.1]:56576 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M8EPO-00084k-VI for guile-devel@m.gmane.org; Sun, 24 May 2009 10:10:38 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M8EJ0-0006ch-Cz for guile-devel@gnu.org; Sun, 24 May 2009 10:04:02 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M8EIv-0006VE-2a for guile-devel@gnu.org; Sun, 24 May 2009 10:04:01 -0400 Original-Received: from [199.232.76.173] (port=35851 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M8EIu-0006Uk-UI for guile-devel@gnu.org; Sun, 24 May 2009 10:03:56 -0400 Original-Received: from mail1-relais-roc.national.inria.fr ([192.134.164.82]:13394) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.60) (envelope-from ) id 1M8EIs-0003w2-Tr for guile-devel@gnu.org; Sun, 24 May 2009 10:03:55 -0400 X-IronPort-AV: E=Sophos;i="4.41,240,1241388000"; d="scan'208";a="29829274" Original-Received: from reverse-83.fdn.fr (HELO nixey) ([80.67.176.83]) by mail1-relais-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES128-SHA; 24 May 2009 16:03:51 +0200 X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 5 Prairial an 217 de la =?iso-8859-1?Q?R=E9volution?= X-PGP-Key-ID: 0xEA52ECF4 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 821D 815D 902A 7EAB 5CEE D120 7FBA 3D4F EB1F 5364 X-OS: i686-pc-linux-gnu In-Reply-To: <87my93zaud.fsf@arudy.ossau.uklinux.net> (Neil Jerram's message of "Sat, 23 May 2009 23:57:30 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.90 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:8513 Archived-At: Hello! Neil Jerram writes: > Thanks! And here's the corresponding patch for master. It's slightly > different, because scm_join_thread_timed in master allows for the join > attempt timing out and should return a special timeout value in that > case. Also I had to fix another problem, wait-condition-variable > leaving asyncs blocked, before I could reproduce the > scm_join_thread_timed issue in threads.test, so a patch for that > problem is attached too. Cool, thank you! > +(define (asyncs-still-working?) > + (let ((a #f)) > + (system-async-mark (lambda () > + (set! a #t))) > + (equal? '(a b c) '(a b c)) > + a)) I guess `equal?' is here to trigger an `SCM_TICK', right? Perhaps a comment could be added to make it explicit? Thanks, Ludo'.