Are the time functions of MSVC thread-safe?

前端 未结 4 552
遥遥无期
遥遥无期 2020-12-18 23:59

In case of Linux, for time functions we have a _r versions Ex: localtime has localtime_r, but in Windows I am unable to find some such functions. Are the Windows time functi

4条回答
  •  我在风中等你
    2020-12-19 00:43

    I think that Windows localtime_s is thread safe: http://msdn.microsoft.com/en-us/library/a442x3ye(VS.80).aspx - at least when using MS CRT

提交回复
热议问题