lua-users home
lua-l archive

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


It was thus said that the Great Sam Roberts once stated:
> On Tue, Dec 6, 2011 at 10:49 PM, Sean Conner <sean@conman.org> wrote:
> > It was thus said that the Great Brian Maher once stated:
> >> On the issue of calling Lua functions from C, you might want to avoid
> >> doing that since it prevents the default Lua from working properly
> >> with coroutines.
> >
> >  How so?  I wrote a framework (that I need to put up somewhere) that works
> > fine with coroutines.  In fact, it launches a new Lua coroutine everytime a
> > new TCP connection is made, with each Lua "thread" handling a connection and
> > it's driven completely from C.
> 
> You can't yield across a C call boundary. Not without luajit or coco.

  Somehow, I missed that.  Does that mean my program will now not work?

  Or am I missing something about lua_yield()?

  -spc (I'm confused)