lua-users home
lua-l archive

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


On Sat, Nov 7, 2009 at 6:43 PM, Florian Weimer <fw@deneb.enyo.de> 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.

-Duncan