From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Daniel Hartwig Newsgroups: gmane.lisp.guile.devel Subject: Re: [PATCH] Futures: Avoid creating the worker pool more than once Date: Wed, 7 Nov 2012 22:14:04 +0800 Message-ID: References: <87a9uu9vpk.fsf@tines.lan> <87r4o58r0f.fsf@tines.lan> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1352297671 12647 80.91.229.3 (7 Nov 2012 14:14:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 7 Nov 2012 14:14:31 +0000 (UTC) Cc: guile-devel@gnu.org To: Mark H Weaver Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Wed Nov 07 15:14:39 2012 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TW6Or-0001gW-B5 for guile-devel@m.gmane.org; Wed, 07 Nov 2012 15:14:37 +0100 Original-Received: from localhost ([::1]:36179 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TW6Oi-0006Gq-5Q for guile-devel@m.gmane.org; Wed, 07 Nov 2012 09:14:28 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:46914) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TW6OW-0006GR-SY for guile-devel@gnu.org; Wed, 07 Nov 2012 09:14:26 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TW6OL-0007jy-NQ for guile-devel@gnu.org; Wed, 07 Nov 2012 09:14:16 -0500 Original-Received: from mail-we0-f169.google.com ([74.125.82.169]:47290) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TW6OL-0007jO-GK for guile-devel@gnu.org; Wed, 07 Nov 2012 09:14:05 -0500 Original-Received: by mail-we0-f169.google.com with SMTP id u3so880473wey.0 for ; Wed, 07 Nov 2012 06:14:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=rx9Am+PdVTkBs5amLZCWusPc5gZdvDQgWi7312WWrIY=; b=aDfh47TQyrFf3n4PoNTeeSBJs9xrCmnaR5MfS9Aqx4KyRxNQa1u2OgJR6d1fTq4lZC Lz+oT2TgOTa14RT6VJSGLJPXo5ZSwHFqgZhoY7XBoYN1d9MAR7SS/YfxVbHyxJSrFLTe rWwZ4qljwBWRaEbWCYfPFrWnE8sG01JcCE/xwOdOW7gQsMd8CkfNI/N/aNAYE0omayZ0 ysSdiwTOZPVZNIj5OYHYxn2Qd4/F2a3GzfE+nAhcTcblg9ECZS1a53FOjV5NHcPr86Gj jdCzggMoLQgHNNewWGGiu4u/LqGH8fwx+zDL0dXUOdSl+XmTNLKxShscXhuKzpdMIeyi +gfg== Original-Received: by 10.180.14.73 with SMTP id n9mr25089867wic.15.1352297644651; Wed, 07 Nov 2012 06:14:04 -0800 (PST) Original-Received: by 10.217.53.133 with HTTP; Wed, 7 Nov 2012 06:14:04 -0800 (PST) In-Reply-To: <87r4o58r0f.fsf@tines.lan> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 74.125.82.169 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:15121 Archived-At: On 7 November 2012 21:46, Mark H Weaver wrote: > Here's an improved version the patch that gracefully handles the case > where creation of the worker pool is unsuccessful due to an exception or > cancelled thread. > > What do you think? Looks clean. Nice work picking up on this race condition.