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
+//#define THREADDISABLE
// use recursive mutex (non-posix) extensions in thread_pthread
#define THREADRECURSIVE
int Thread_Init(void)
{
+#ifdef THREADDISABLE
+ Con_Printf("Threading disabled in this build\n");
+#endif
return 0;
}
qboolean Thread_HasThreads(void)
{
+#ifdef THREADDISABLE
+ return false;
+#else
return true;
+#endif
}
void *_Thread_CreateMutex(const char *filename, int fileline)
int Thread_Init(void)
{
+#ifdef THREADDISABLE
+ Con_Printf("Threading disabled in this build\n");
+#endif
return 0;
}
qboolean Thread_HasThreads(void)
{
+#ifdef THREADDISABLE
+ return false;
+#else
return true;
+#endif
}
void *_Thread_CreateMutex(const char *filename, int fileline)