[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: lua_yield behaviour
- From: Roberto Ierusalimschy <roberto@...>
- Date: Wed, 07 Aug 2002 16:34:28 -0300
> A Lua script calls an external C function. This function schedules for
> execution a stack of actions, and imediately calls lua_yield() to stop
> the script from running further. Where exactly will LUA VM stop in this
> scenario ?
Exactly after the call. When you resume the thread, it will start at the
next opcode after the OP_CALL that called the C function.
-- Roberto