fix yapor
This commit is contained in:
parent
a8bf2907d5
commit
973fb57ab8
@ -189,12 +189,14 @@ extern struct worker_shared Yap_Global;
|
||||
#if defined(YAPOR) || defined(THREADS)
|
||||
#if defined(THREADS)
|
||||
extern struct worker_local *Yap_WLocal[MAX_AGENTS];
|
||||
#else
|
||||
extern struct worker_local *Yap_WLocal;
|
||||
#endif
|
||||
#define WL (Yap_WLocal[worker_id])
|
||||
#define FOREIGN_WL(wid) (Yap_WLocal[(wid)])
|
||||
#else
|
||||
extern struct worker_local *Yap_WLocal;
|
||||
#define WL (Yap_WLocal+worker_id)
|
||||
#define FOREIGN_WL(wid) (Yap_WLocal+wid)
|
||||
#endif
|
||||
#else
|
||||
extern struct worker_local Yap_WLocal;
|
||||
#define WL (&Yap_WLocal)
|
||||
#define FOREIGN_WL(wid) (&Yap_WLocal)
|
||||
|
Reference in New Issue
Block a user