[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: scripts launching other scripts (coroutines)
- From: "Aaron Brown" <arundelo@...>
- Date: Wed, 13 Sep 2006 16:05:16 -0400
Thomas Blom wrote:
the Capi_killScript just deletes the C object - it doesn't
free the thread in any way (there is no way to free the
thread created with lua_newthread).
Threads are subject to garbage collection and do not need to
be manually freed.
But luaFn2 will never finish - is this OK?
Yes. It's no problem if a coroutine is not dead (see
coroutine.status) when it is collected.