Proposal: API for thread-safe time zone functions
Garrett Wollman
wollman at khavrinen.lcs.mit.edu
Thu Jun 7 22:16:51 UTC 2001
<<On Thu, 7 Jun 2001 13:44:48 -0700 (PDT), Paul Eggert <eggert at twinsun.com> said:
> It doesn't worry about threads, so it mishandles this case: two
> different threads can clobber the same internal structure.
> I don't offhand know what other systems do.
At least in FreeBSD, these functions are serialized for thread
safety. (That's one of the reasons we haven't updated to a recent
tzcode in years.) Obviously, functions like localtime() which return
static buffers can never be made thread-safe.
-GAWollman
More information about the tz
mailing list