git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11609
d7cf8633-e32d-0410-b094-
e92efae38249
// enable Sys_PrintfToTerminal calls on nearly every threading call
//#define THREADDEBUG
// enable Sys_PrintfToTerminal calls on nearly every threading call
//#define THREADDEBUG
// use recursive mutex (non-posix) extensions in thread_pthread
#define THREADRECURSIVE
// use recursive mutex (non-posix) extensions in thread_pthread
#define THREADRECURSIVE
+#ifdef THREADDISABLE
+ Con_Printf("Threading disabled in this build\n");
+#endif
qboolean Thread_HasThreads(void)
{
qboolean Thread_HasThreads(void)
{
+#ifdef THREADDISABLE
+ return false;
+#else
}
void *_Thread_CreateMutex(const char *filename, int fileline)
}
void *_Thread_CreateMutex(const char *filename, int fileline)
+#ifdef THREADDISABLE
+ Con_Printf("Threading disabled in this build\n");
+#endif
qboolean Thread_HasThreads(void)
{
qboolean Thread_HasThreads(void)
{
+#ifdef THREADDISABLE
+ return false;
+#else
}
void *_Thread_CreateMutex(const char *filename, int fileline)
}
void *_Thread_CreateMutex(const char *filename, int fileline)