[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Is having lua_State per thread safe?
- From: Roberto Ierusalimschy <roberto@...>
- Date: Wed, 23 May 2012 10:33:59 -0300
> lua_State is NOT thread safe.
To clarify things:
- Different lua_States created with calls to lua_newstate (or
luaL_newsate) are thread safe, as much as they do not share any mutable
- Different lua_States created with calls to lua_newthread are not
thread safe, as they do share lots of mutable data.