[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: lua_State and garbage collection
- From: Ben Sunshine-Hill <sneftel@...>
- Date: Fri, 15 Jul 2005 19:30:52 -0700
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?