* Re: [Caml-list] Re: Unix.localtime not threadsafe?
@ 2005-09-03 10:38 Damien Bobillot
0 siblings, 0 replies; 2+ messages in thread
From: Damien Bobillot @ 2005-09-03 10:38 UTC (permalink / raw)
To: Florian Weimer
[-- 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 --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Caml-list] Re: Unix.localtime not threadsafe?
2005-09-03 7:03 ` Bardur Arantsson
@ 2005-09-03 7:20 ` Florian Weimer
0 siblings, 0 replies; 2+ messages in thread
From: Florian Weimer @ 2005-09-03 7:20 UTC (permalink / raw)
To: Bardur Arantsson; +Cc: caml-list
* 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.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-09-03 10:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-09-03 10:38 [Caml-list] Re: Unix.localtime not threadsafe? Damien Bobillot
-- 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
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox