]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - thread_sdl.c
Add THREADDISABLE define to make builds with whole threading system disabled.
[xonotic/darkplaces.git] / thread_sdl.c
index 64006dbfb6242fbc1cb05a6c90fce7ac3461552e..b49069c3d55d36bb4e544b995042fb2257391374 100644 (file)
@@ -5,6 +5,9 @@
 
 int Thread_Init(void)
 {
+#ifdef THREADDISABLE
+       Con_Printf("Threading disabled in this build\n");
+#endif
        return 0;
 }
 
@@ -14,7 +17,11 @@ void Thread_Shutdown(void)
 
 qboolean Thread_HasThreads(void)
 {
+#ifdef THREADDISABLE
+       return false;
+#else
        return true;
+#endif
 }
 
 void *_Thread_CreateMutex(const char *filename, int fileline)