remove MAX_AGENTS

This commit is contained in:
Joao 2011-03-24 17:07:01 +00:00
parent 94e5681aed
commit d6640260cc
3 changed files with 2 additions and 7 deletions

View File

@ -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

View File

@ -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 *************/

View File

@ -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