bug-gnulib
[Top][All Lists]
Advanced

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

Re: [bug-gnulib] localtime_r thread-safe?


From: Paul Eggert
Subject: Re: [bug-gnulib] localtime_r thread-safe?
Date: Thu, 27 Apr 2006 09:43:15 -0700
User-agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux)

Bruno Haible <address@hidden> writes:

> Paul, what about the following patch to make our replacement
> functions MT-safe?

Thanks, but in this particular case I'd like to know more before
saying yes.

I don't know of any hosts that have multithreading and localtime but
lack a working localtime_r.  The problems that I know of in this area
typically are namespace problems, where the system has a localtime_r
but refuses to let you see it unless you utter the appropriate
mumbojumbo.  In this case I'd prefer the bug to be exposed to the
installer (so that they can use the appropriate compiler flags),
rather than worked-around with a replacement involving a global lock,
since the system's localtime_r undoubtedly will be better than our
replacement.

If there's a specific system where this global-lock workaround is
actually needed then it's a good idea to put in, but I'd like to see
the details, and if possible have the workaround installed only when
it's actually needed.




reply via email to

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