[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Problem with concurrency, threads, Lua states and maybe GC?
- From: Javier Guerra <javier@...>
- Date: Tue, 1 Dec 2009 11:17:38 -0500
On Tue, Dec 1, 2009 at 10:48 AM, Matt 'Matic' (Lua) <email@example.com> 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.