From: Florian Weimer <fw@deneb.enyo.de>
To: Bardur Arantsson <spam@scientician.net>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Re: Unix.localtime not threadsafe?
Date: Sat, 03 Sep 2005 09:20:27 +0200 [thread overview]
Message-ID: <873bomobwk.fsf@mid.deneb.enyo.de> (raw)
In-Reply-To: <dfbhrc$e28$1@sea.gmane.org> (Bardur Arantsson's message of "Sat, 03 Sep 2005 09:03:08 +0200")
* Bardur Arantsson:
> I don't think the glibc/Linux localtime() man page explicitly states
> this, but I expect that it returns a pointer to a *thread-local*
> statically allocated struct tm... in which case there's no problem.
Thread-local storage is a recent innovation in the Linux camp.
Previously, developers seem to think that no efficient implementation
was possible. That's why there all the *_r variants (such as
localtime_r).
I believe Solaris does something in the direction you suggest.
next prev parent reply other threads:[~2005-09-03 7:23 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-02 17:34 Yaron Minsky
2005-09-03 7:03 ` Bardur Arantsson
2005-09-03 7:20 ` Florian Weimer [this message]
2005-09-03 7:54 ` [Caml-list] " Xavier Leroy
2005-09-03 11:14 ` Yaron Minsky
2005-09-03 10:38 [Caml-list] " Damien Bobillot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=873bomobwk.fsf@mid.deneb.enyo.de \
--to=fw@deneb.enyo.de \
--cc=caml-list@inria.fr \
--cc=spam@scientician.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox