[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Is having lua_State per thread safe?
- From: Gé Weijers <ge@...>
- Date: Thu, 24 May 2012 14:00:37 -0700
On Thu, May 24, 2012 at 7:27 AM, Roberto Ierusalimschy
<roberto@inf.puc-rio.br> wrote:
> Yes :-( (Well, for this particular case Lua 5.2 uses gmtime_r when
> possible. But some other C functions still have problems.)
setlocale, rand and srand come to mind.
So os.setlocale, math.random and math.randomseed should be avoided
after starting threads.
--
Gé
- References:
- Storing passwords, Paco Willers
- Is having lua_State per thread safe?, Tezduyar Lindskog, Umut
- Re: Is having lua_State per thread safe?, Erik Hougaard
- Re: Is having lua_State per thread safe?, Patrick Rapin
- RE: Is having lua_State per thread safe?, Tezduyar Lindskog, Umut
- Re: Is having lua_State per thread safe?, Szymon Gatner
- Re: Is having lua_State per thread safe?, Roberto Ierusalimschy
- Re: Is having lua_State per thread safe?, Roberto Ierusalimschy
- Re: Is having lua_State per thread safe?, Ignacio Burgueño
- Re: Is having lua_State per thread safe?, Roberto Ierusalimschy