lua-users home
lua-l archive

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


lua_resume()->lua code->resume()->C function->pcall()->yield()

I think I have this right. So when the coroutine starts running it might
call a C function which might pcall some Lua code that yields. THis
means that the yield() needs to cross a C/Lua boundary.
The same problem occurs when starting with lua_resume() and then
executing Lua pcall() which in turn may call lua_yield().

db

On 3/20/07, Graham Wakefield <lists@grahamwakefield.net> wrote:
I keep hearing this phrase, but what exactly does it mean? Thanks!

On Mar 19, 2007, at 6:46 AM, Eike Decker wrote:

> Only problem is, that lua coroutines can't yield across C calls