[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Is having lua_State per thread safe?
- From: Ignacio Burgueño <ignaciob@...>
- Date: Wed, 23 May 2012 19:47:46 -0300
On Wed, May 23, 2012 at 10:42 AM, Roberto Ierusalimschy
<roberto@inf.puc-rio.br> wrote:
>
> Sorry for the noise. Without a common meaning for "thread safe", this
> discussion is pointless. What seems relevant is this:
>
> - 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.
Other than that, at work we have many multithreaded applications using
multiple lua_States and they work just fine, and when there is some
bug related to shared state, it's never related to Lua.
- 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