[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Closing threads
- From: Roberto Ierusalimschy <roberto@...>
- Date: Wed, 05 Jun 2002 09:02:33 -0300
> 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