lua-users home
lua-l archive

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


> In 5.0, is calling lua_closethread for a Lua thread with a non-empty
> call stack fully supported (won't blow up, won't leak, etc)?

Yes, as long as the thread is in a "consistent" state. That means
the thread was stopped in a "natural way", outside Lua (e.g. in a C
function). (Notice that such condition is necessary for any call to the
Lua API, not only to lua_closethread.)

-- Roberto