diff --git a/neo/framework/BuildDefines.h b/neo/framework/BuildDefines.h index 72d7cf26..924c2829 100644 --- a/neo/framework/BuildDefines.h +++ b/neo/framework/BuildDefines.h @@ -147,3 +147,7 @@ DOOM III gold: 33 // special game init ids #define GAME_INIT_ID_INVALID (-1) #define GAME_INIT_ID_MAP_LOAD (-2) + +// threads + +#define MAX_THREADS (10) diff --git a/neo/sys/posix/posix_threads.cpp b/neo/sys/posix/posix_threads.cpp index 5e2fef00..cf38f2fc 100644 --- a/neo/sys/posix/posix_threads.cpp +++ b/neo/sys/posix/posix_threads.cpp @@ -52,7 +52,6 @@ thread create and destroy */ // not a hard limit, just what we keep track of for debugging -#define MAX_THREADS 10 xthreadInfo *g_threads[MAX_THREADS]; int g_thread_count = 0; diff --git a/neo/sys/sys_public.h b/neo/sys/sys_public.h index f583ca21..9c02f9f9 100644 --- a/neo/sys/sys_public.h +++ b/neo/sys/sys_public.h @@ -372,7 +372,6 @@ typedef struct { size_t threadId; } xthreadInfo; -const int MAX_THREADS = 10; extern xthreadInfo *g_threads[MAX_THREADS]; extern int g_thread_count;