make var names available as a global var
This commit is contained in:
parent
dbfe42b360
commit
8ea17007f0
@ -78,6 +78,8 @@
|
|||||||
|
|
||||||
#define LOCAL_ConsultLow LOCAL->ConsultLow_
|
#define LOCAL_ConsultLow LOCAL->ConsultLow_
|
||||||
#define REMOTE_ConsultLow(wid) REMOTE(wid)->ConsultLow_
|
#define REMOTE_ConsultLow(wid) REMOTE(wid)->ConsultLow_
|
||||||
|
#define LOCAL_VarNames LOCAL->VarNames_
|
||||||
|
#define REMOTE_VarNames(wid) REMOTE(wid)->VarNames_
|
||||||
|
|
||||||
#define LOCAL_GlobalArena LOCAL->GlobalArena_
|
#define LOCAL_GlobalArena LOCAL->GlobalArena_
|
||||||
#define REMOTE_GlobalArena(wid) REMOTE(wid)->GlobalArena_
|
#define REMOTE_GlobalArena(wid) REMOTE(wid)->GlobalArena_
|
||||||
|
@ -45,6 +45,7 @@ typedef struct worker_local {
|
|||||||
union CONSULT_OBJ* ConsultBase_;
|
union CONSULT_OBJ* ConsultBase_;
|
||||||
|
|
||||||
union CONSULT_OBJ* ConsultLow_;
|
union CONSULT_OBJ* ConsultLow_;
|
||||||
|
Term VarNames_;
|
||||||
|
|
||||||
Term GlobalArena_;
|
Term GlobalArena_;
|
||||||
UInt GlobalArenaOverflows_;
|
UInt GlobalArenaOverflows_;
|
||||||
|
@ -45,6 +45,7 @@ static void InitWorker(int wid) {
|
|||||||
REMOTE_ConsultBase(wid) = NULL;
|
REMOTE_ConsultBase(wid) = NULL;
|
||||||
|
|
||||||
REMOTE_ConsultLow(wid) = NULL;
|
REMOTE_ConsultLow(wid) = NULL;
|
||||||
|
REMOTE_VarNames(wid) = ((Term)0);
|
||||||
|
|
||||||
REMOTE_GlobalArena(wid) = 0L;
|
REMOTE_GlobalArena(wid) = 0L;
|
||||||
REMOTE_GlobalArenaOverflows(wid) = 0L;
|
REMOTE_GlobalArenaOverflows(wid) = 0L;
|
||||||
|
@ -44,6 +44,7 @@ static void RestoreWorker(int wid USES_REGS) {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
REMOTE_GlobalArena(wid) = TermToGlobalOrAtomAdjust(REMOTE_GlobalArena(wid));
|
REMOTE_GlobalArena(wid) = TermToGlobalOrAtomAdjust(REMOTE_GlobalArena(wid));
|
||||||
|
@ -45,6 +45,7 @@ UInt ConsultCapacity void
|
|||||||
union CONSULT_OBJ* ConsultBase =NULL
|
union CONSULT_OBJ* ConsultBase =NULL
|
||||||
/* low-water mark for consult */
|
/* low-water mark for consult */
|
||||||
union CONSULT_OBJ* ConsultLow =NULL
|
union CONSULT_OBJ* ConsultLow =NULL
|
||||||
|
Term VarNames =((Term)0)
|
||||||
|
|
||||||
//global variables
|
//global variables
|
||||||
Term GlobalArena =0L TermToGlobalOrAtomAdjust
|
Term GlobalArena =0L TermToGlobalOrAtomAdjust
|
||||||
|
Reference in New Issue
Block a user