[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: RE: on what *L to execute a callback from c
- From: "Thijs Schreijer" <thijs@...>
- Date: Fri, 11 May 2012 10:27:48 +0200
> Do you have multiple lua_States created by lua_newstate, or just
> separate coroutines created by lua_newthread?
Sorry, should have mentioned that; 1 state with multiple coroutines. I'm
aware that I cannot execute a function from one state in another.
> On Fri, May 11, 2012 at 09:54:13AM +0200, Thijs Schreijer wrote:
> > A lot has been written on callbacks, but couldn't find an answer to
> this one
> > in the archives;
> > Does it make a difference on what (valid) lua_State object I execute
> > callback? Does it change anything for the callback function being
> > Or is there no difference, whatever lua_State is being used (as long
> as it
> > is valid)?
> > Any pointers are appreciated.
> > Thijs