From 737f119187aca3c8f6743ec6e3cfc04e83723180 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 20 Dec 2010 16:17:46 -0200 Subject: better control for GC running or stopped --- lstate.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lstate.h') diff --git a/lstate.h b/lstate.h index 40c3ac16..fd1b2d66 100644 --- a/lstate.h +++ b/lstate.h @@ -1,5 +1,5 @@ /* -** $Id: lstate.h,v 2.68 2010/10/29 17:52:46 roberto Exp roberto $ +** $Id: lstate.h,v 2.69 2010/11/26 14:32:31 roberto Exp roberto $ ** Global State ** See Copyright Notice in lua.h */ @@ -123,6 +123,7 @@ typedef struct global_State { lu_byte currentwhite; lu_byte gcstate; /* state of garbage collector */ lu_byte gckind; /* kind of GC running */ + lu_byte gcrunning; /* true if GC is running */ int sweepstrgc; /* position of sweep in `strt' */ GCObject *allgc; /* list of all collectable objects */ GCObject *finobj; /* list of collectable objects with finalizers */ -- cgit v1.2.3-55-g6feb