lua-users home
lua-l archive

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


On Tue, Dec 1, 2009 at 10:48 AM, Matt 'Matic' (Lua) <lua@photon.me.uk> wrote:
> There is quite a large amount of C/C++ extensions added into Lua that are
> called from within each Lua context
>
> This is probably just a side detail and not relevant.

does any of these extensions touch a Lua_State other than the one that
called it?  remember that the Lua core calls LuaUnlock just before
executing a C extension, so some other state will be running
concurrently with your C code; if you modify it, it will be corrupted.

-- 
Javier