[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Feature request: use counter for LUA_GCSTOP/LUA_GCRESTART
- From: Duncan Cross <duncan.cross@...>
- Date: Mon, 9 Nov 2009 12:41:55 +0000
On Sat, Nov 7, 2009 at 6:43 PM, Florian Weimer <email@example.com> wrote:
> I would like to pair LUA_GCSTOP/LUA_GCRESTART invocations in a nested
> fashion (or at least, I want to call it from a library where I don't
> know if the garbage collector has already been stopped). There
> doesn't seem to be any way to restore the previous state after calling
> lua_gc(LUA_GCSTOP), unfortunately.
I'd like to second this request, or something with the same intention
- for example, being able to call an API function that returns 0 or 1
to indicate whether the GC is currently running or not.