lua-users home
lua-l archive

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


On 7/15/05, Petter Rønningen <tankefugl@gmail.com> wrote:
> If it yields, another part of the
> application will resume the lua_State at the appropriate time.
> 
> This leaves me with a problem regarding the garbage collection, since
> the thread is on the global state's stack when created. I cannot pop
> it after creating it because it will ruin for the lua_resume on the
> thread after a potential yield.

Well, you need to put it somewhere.... and in the Lua world, not the C
world. This "another part" that resumes it later.... how does it know
where the thread is?