remove MAX_AGENTS
This commit is contained in:
parent
94e5681aed
commit
d6640260cc
2
C/init.c
2
C/init.c
@ -1243,7 +1243,7 @@ struct worker_shared Yap_Global;
|
||||
#endif
|
||||
|
||||
#if defined(THREADS)
|
||||
struct worker_local *Yap_WLocal[MAX_AGENTS];
|
||||
struct worker_local *Yap_WLocal[MAX_THREADS];
|
||||
#elif defined(YAPOR)
|
||||
struct worker_local *Yap_WLocal;
|
||||
#else
|
||||
|
5
H/Yap.h
5
H/Yap.h
@ -428,11 +428,6 @@ typedef pthread_rwlock_t rwlock_t;
|
||||
#ifdef __alpha
|
||||
#include <locks_alpha_funcs.h>
|
||||
#endif
|
||||
#if defined(THREADS)
|
||||
#define MAX_AGENTS MAX_THREADS
|
||||
#elif defined(YAPOR)
|
||||
#define MAX_AGENTS MAX_WORKERS
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/************ variables concerned with Error Handling *************/
|
||||
|
@ -189,7 +189,7 @@ extern struct worker_shared Yap_Global;
|
||||
|
||||
#if defined(YAPOR) || defined(THREADS)
|
||||
#if defined(THREADS)
|
||||
extern struct worker_local *Yap_WLocal[MAX_AGENTS];
|
||||
extern struct worker_local *Yap_WLocal[MAX_THREADS];
|
||||
#define WL (Yap_WLocal[worker_id])
|
||||
#define FOREIGN_WL(wid) (Yap_WLocal[(wid)])
|
||||
#else
|
||||
|
Reference in New Issue
Block a user