lua-users home
lua-l archive

[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