[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua standard library - thread-unsafety
- From: Arseny Vakhrushev <arseny.vakhrushev@...>
- Date: Wed, 27 Jun 2012 23:00:55 +0400
True. I was talking about Lua 5.1. It would be great if these changes could be backported. LuaJIT is not going to support Lua 5.2 in recent future, thus a program which links with either Lua or LuaJIT could benefit from the both equally and symmetrically.
On Jun 27, 2012, at 22:37, Daurnimator wrote:
> On 28 June 2012 03:31, Arseny Vakhrushev <arseny.vakhrushev@gmail.com> wrote:
>> The best way would be to use localtime_r() instead of localtime(). The manual states it is sufficient to check for _POSIX_C_SOURCE >= 1 || _XOPEN_SOURCE || _BSD_SOURCE || _SVID_SOURCE || _POSIX_SOURCE.
>
> lua 5.2 does.
> http://www.lua.org/source/5.2/loslib.c.html#l_localtime
>