lua-users home
lua-l archive

Re: Is having lua_State per thread safe?

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> 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
data.
- Different lua_States created with calls to lua_newthread are not
thread safe, as they do share lots of mutable data.
-- Roberto

AltStyle によって変換されたページ (->オリジナル) /