|
OK I found this: http://lua-users.org/wiki/ThreadsTutorialMakes a bit more sense; I should implement lua_lock and lua_unlock to ensure thread safety.
Is this all still true for 5.1? Graham On Sep 15, 2006, at 5:15 PM, Luiz Henrique de Figueiredo wrote:
How much can I copy Lua data around between distinct states (assuming thread safety is managed correctly)?If you have got your locking right, you can use lua_xmove if the Lua states are related (ie, children of the same Lua top state).