guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: threadsafe format.scm


From: Clinton Ebadi
Subject: Re: threadsafe format.scm
Date: Wed, 30 Jul 2003 19:06:54 -0400
User-agent: KMail/1.5.9

On Wednesday 30 July 2003 18:36, Kevin Ryde wrote:
> Clinton Ebadi <address@hidden> 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:address@hidden




reply via email to

[Prev in Thread] Current Thread [Next in Thread]