[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Is having lua_State per thread safe?
- From: Roberto Ierusalimschy <roberto@...>
- Date: Thu, 24 May 2012 11:27:43 -0300
> > - Different lua_States created with calls to lua_newstate (or
> > luaL_newsate) do not share any mutable data.
> >
>
> However, some functions from the C runtime do share mutable data. For
> instance, gmtime.
Yes :-( (Well, for this particular case Lua 5.2 uses gmtime_r when
possible. But some other C functions still have problems.)
-- Roberto
- 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