localtime_r

Keresztfalvi Laszlo kereszt@crossys.com
Mon Feb 7 09:01:00 GMT 2005


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"



More information about the Pthreads-win32 mailing list