From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Clinton Ebadi Newsgroups: gmane.lisp.guile.devel Subject: Re: threadsafe format.scm Date: Wed, 30 Jul 2003 19:06:54 -0400 Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Message-ID: <200307301906.54468.clinton@unknownlamer.org> References: <200307282327.42988.clinton@unknownlamer.org> <873cgn3and.fsf@zip.com.au> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1059606630 1121 80.91.224.249 (30 Jul 2003 23:10:30 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 30 Jul 2003 23:10:30 +0000 (UTC) Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Thu Jul 31 01:10:24 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19i04M-0000EZ-00 for ; Thu, 31 Jul 2003 01:09:24 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19i04Q-0004M9-PV for guile-devel@m.gmane.org; Wed, 30 Jul 2003 19:09:22 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19i03M-0002AZ-Fn for guile-devel@gnu.org; Wed, 30 Jul 2003 19:08:16 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19i02Q-0001Pg-0U for guile-devel@gnu.org; Wed, 30 Jul 2003 19:07:18 -0400 Original-Received: from out006pub.verizon.net ([206.46.170.106] helo=out006.verizon.net) by monty-python.gnu.org with esmtp (Exim 4.20) id 19i02F-0001Go-Nf for guile-devel@gnu.org; Wed, 30 Jul 2003 19:07:08 -0400 Original-Received: from vsynth ([151.196.172.17]) by out006.verizon.net (InterMail vM.5.01.05.33 201-253-122-126-133-20030313) with ESMTP id <20030730230703.DLET16647.out006.verizon.net@vsynth> for ; Wed, 30 Jul 2003 18:07:03 -0500 Original-Received: from clinton by vsynth with local (Exim 3.36 #1 (Debian)) id 19i023-00011Q-00 for ; Wed, 30 Jul 2003 19:06:55 -0400 Original-To: guile-devel@gnu.org User-Agent: KMail/1.5.9 In-Reply-To: <873cgn3and.fsf@zip.com.au> Content-Disposition: inline X-Authentication-Info: Submitted using SMTP AUTH at out006.verizon.net from [151.196.172.17] at Wed, 30 Jul 2003 18:07:02 -0500 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.2 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 Xref: main.gmane.org gmane.lisp.guile.devel:2673 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:2673 On Wednesday 30 July 2003 18:36, Kevin Ryde wrote: > Clinton Ebadi writes: > > I wrapped all of the global variables that are modified in format.scm in > > fluids and a quick test makes it appear that the new format is now > > threadsafe (the old one fails, but the new one works). > > Can they be made into local variables within a big define instead (let > or whatever)? That'd have the advantage of being reentrant too. No, because they are shared between all of the many different procedures of format. Of course, one could make all of the various procedures used by format be local to format. That seems to be the best way to do things, so I'll redo my patch so it does that instead. I also noticed (a few minutes ago) that I missed the variables used by the floating point printer that are global and modified. -- http://unknownlamer.org AIM:unknownlamer IRC:unknown_lamer@freenode#hprog _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel