From 5a052e846f33886f948c17df0f0fe8578d6a43b4 Mon Sep 17 00:00:00 2001 From: dhewg Date: Tue, 20 Dec 2011 20:40:55 +0100 Subject: [PATCH] Move MAX_THREADS as define to BuildDefines.h --- neo/framework/BuildDefines.h | 4 ++++ neo/sys/posix/posix_threads.cpp | 1 - neo/sys/sys_public.h | 1 - 3 files changed, 4 insertions(+), 2 deletions(-) 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;