caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Damien Bobillot <damien.bobillot@m4x.org>
To: Florian Weimer <fw@deneb.enyo.de>
Subject: Re: [Caml-list] Re: Unix.localtime not threadsafe?
Date: Sat, 3 Sep 2005 12:38:07 +0200	[thread overview]
Message-ID: <16378C5C-EEA9-4670-BDEC-46FDBBA54BDD@m4x.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 583 bytes --]


Florian Weimer wrote :


> * 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).
>

For information : Mac OS X use thread-local storage since version 10.2.

-- 
Damien Bobillot



[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 2375 bytes --]

             reply	other threads:[~2005-09-03 10:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-03 10:38 Damien Bobillot [this message]
  -- strict thread matches above, loose matches on Subject: below --
2005-09-02 17:34 Yaron Minsky
2005-09-03  7:03 ` Bardur Arantsson
2005-09-03  7:20   ` [Caml-list] " Florian Weimer

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=16378C5C-EEA9-4670-BDEC-46FDBBA54BDD@m4x.org \
    --to=damien.bobillot@m4x.org \
    --cc=fw@deneb.enyo.de \
    /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;
as well as URLs for NNTP newsgroup(s).