From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mark H Weaver Newsgroups: gmane.lisp.guile.devel Subject: Re: [PATCH] Fix thread-unsafe lazy initializations Date: Tue, 05 Mar 2013 16:10:02 -0500 Message-ID: <87zjyhd045.fsf@tines.lan> References: <87wqx4w878.fsf@tines.lan> <87vcco5g4j.fsf@gnu.org> <87mwy0vxog.fsf@tines.lan> <877gn62thq.fsf@pobox.com> <87txq7okkj.fsf@tines.lan> <87pq0voiym.fsf@tines.lan> <87mwuow3jx.fsf@tines.lan> <87fw0gvxdj.fsf_-_@tines.lan> <874ngv8odp.fsf@gnu.org> <87hakpel0z.fsf@tines.lan> <87lia1h8y2.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1362517872 16461 80.91.229.3 (5 Mar 2013 21:11:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 5 Mar 2013 21:11:12 +0000 (UTC) Cc: Andy Wingo , guile-devel@gnu.org To: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Tue Mar 05 22:11:36 2013 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 1UCz95-00071Y-Bg for guile-devel@m.gmane.org; Tue, 05 Mar 2013 22:11:35 +0100 Original-Received: from localhost ([::1]:53471 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UCz8g-0007YE-GH for guile-devel@m.gmane.org; Tue, 05 Mar 2013 16:11:10 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:39645) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UCz8U-0007X2-JC for guile-devel@gnu.org; Tue, 05 Mar 2013 16:11:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UCz81-0004Bb-CM for guile-devel@gnu.org; Tue, 05 Mar 2013 16:10:53 -0500 Original-Received: from world.peace.net ([96.39.62.75]:51590) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UCz81-000461-6l; Tue, 05 Mar 2013 16:10:29 -0500 Original-Received: from 209-6-91-212.c3-0.smr-ubr1.sbo-smr.ma.cable.rcn.com ([209.6.91.212] helo=tines.lan) by world.peace.net with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1UCz7i-0003lM-Ai; Tue, 05 Mar 2013 16:10:10 -0500 In-Reply-To: <87lia1h8y2.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Tue, 05 Mar 2013 21:45:41 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 96.39.62.75 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:15865 Archived-At: ludo@gnu.org (Ludovic Court=C3=A8s) writes: > Agreed. Perhaps just something like: =E2=80=9CNote that the program shou= ld > ensure that =E2=80=98my_init=E2=80=99 is called only once, and in a threa= d-safe way.=E2=80=9D Okay, I went ahead and pushed it to stable-2.0, with the code comment: "It is important that the call to 'my_init' happens-before all calls to 'my_eval_string'." Thanks, Mark