This is the mail archive of the pthreads-win32@sources.redhat.com mailing list for the pthreas-win32 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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"


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]