[tz] Thread-safe localtime(3) (was Re: Reading binary files)

Thom Hehl Thom at pointsix.com
Wed Nov 2 16:45:32 UTC 2011

That's actually what I'm working on right now. I'm creating an open
source c++ library that will process timezones and provide


From: bent at latency.net [mailto:bent at latency.net] On Behalf Of Bennett
Sent: Wednesday, November 02, 2011 12:02 PM
To: Thom Hehl
Cc: tz at iana.org
Subject: Thread-safe localtime(3) (was Re: [tz] Reading binary files)


Am I missing a fundamental, or would it be reasonable to not necessarily
expose the data structure for the parsed conversion data, but instead
offer explicit parse routine (returning an opaque blob) and convert
routine that takes such a blob as a parameter? Then it should be easy to
make tzset(3) utterly trivial -- call the zoninfo parser on getenv(TZ)
with locking, and localtime(3) likewise trivial, call the real convert
routine with the datastructure cached by the latest tzset.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mm.icann.org/pipermail/tz/attachments/20111102/33af844b/attachment.htm>

More information about the tz mailing list