lua-users home
lua-l archive

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


On Tue, Mar 27, 2012 at 5:51 AM, steve donovan
<steve.j.donovan@gmail.com> wrote:
> Yes, that's it - and I think that's wrong.  Now, could I create a new
> sister Lua state and expect callbacks in that state to work correctly?

either you use different states, or make sure no two threads run it at
the same time.

of course, if you use two states, you'll have to add some way to
communicate between states; they can't be related states, sharing the
same global variables. maybe that's what you meant by "sister Lua
state" ? sorry, can't do that either.


-- 
Javier