From: Will Bryant <will.bryant@ecosm.com>
To: pthreads-win32@sources.redhat.com
Subject: Re: localtime_r
Date: Mon, 07 Feb 2005 11:42:00 -0000 [thread overview]
Message-ID: <42075432.4010106@ecosm.com> (raw)
In-Reply-To: <20050204115434.GE3172@cross>
Keresztfalvi Laszlo wrote:
>I've found that localtime_r() is a macro in pthread-win32 simply referencing
>the localtime() function. According to the MSDN localtime() works just like
>the UNIX version.. each call overwrites the static struct tm storage.
>
>Is this really thread safe?
>
>
>
Yes; it uses a thread-specific buffer on win32. So it's overwritten
with every call in that thread.
--
Will Bryant
Systems Architect, eCOSM Limited
Mobile +64 21 655 443
http://www.ecosm.com/
prev parent reply other threads:[~2005-02-07 11:42 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-07 9:01 localtime_r Keresztfalvi Laszlo
2005-02-07 11:42 ` Will Bryant [this message]
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=42075432.4010106@ecosm.com \
--to=will.bryant@ecosm.com \
--cc=pthreads-win32@sources.redhat.com \
/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 read-only IMAP folder(s) and NNTP newsgroup(s).