lua-users home
lua-l archive

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

I understand that the child lua_States created with lua_newthread share their global table with the parent lua_State.  It is also
apparent that Lua has no inherent synchronization.  I am aware of LuaThread, but let's ignore that for now... :)

So, my question is...
If I have a parent lua_State loaded with all my script, can I create child lua_States and safely call them from multiple threads, as
long as they do not modify the global table?