This is the mail archive of the
pthreads-win32@sources.redhat.com
mailing list for the pthreas-win32 project.
localtime_r
- From: Keresztfalvi Laszlo <kereszt at crossys dot com>
- To: pthreads-win32 <pthreads-win32 at sources dot redhat dot com>
- Date: Fri, 4 Feb 2005 12:54:34 +0100
- Subject: localtime_r
Hello,
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?
Thanks,
Laszlo
PS: a simple call like this: localtime_r (&tt, &ttm); causes MinGW to log
"warning: value computed is not used"