[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: Thu, 28 Jun 2012 18:45:25 +0400
> Actually, the documentation for Lua 5.2 already says that os.date may
> not be thread safe.
It's totally fine on systems without threads or without re-entrant versions of localtime(), i.e. non-POSIX.
The question is would the effort ALREADY MADE to Lua 5.2 to make os.date() re-entrant when possible (e.g. on POSIX systems) be ported back to Lua 5.1 officially? It doesn't really matter whether it will be reflected on the bug list or not. It matters whether the Lua 5.1 users may rely on the next bug fixing version to benefit from it or should handle this case themselves.
// Seny