]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - thread_null.c
added debug prints (enabled if you define THREADDEBUG) for debugging
[xonotic/darkplaces.git] / thread_null.c
index 5d788a49ba99ada73e63a23a7ca1279a9f16ba69..8a75e2461a4641f5f62fd76fb75a9f1a8f60ed96 100644 (file)
@@ -15,22 +15,34 @@ qboolean Thread_HasThreads(void)
        return false;
 }
 
-void *Thread_CreateMutex(void)
+void *_Thread_CreateMutex(const char *filename, int fileline)
 {
+#ifdef THREADDEBUG
+       printf("%p create %s:%i\n" , mutex, filename, fileline);
+#endif
        return NULL;
 }
 
-void Thread_DestroyMutex(void *mutex)
+void _Thread_DestroyMutex(void *mutex, const char *filename, int fileline)
 {
+#ifdef THREADDEBUG
+       printf("%p destroy %s:%i\n", mutex, filename, fileline);
+#endif
 }
 
-int Thread_LockMutex(void *mutex)
+int _Thread_LockMutex(void *mutex, const char *filename, int fileline)
 {
+#ifdef THREADDEBUG
+       printf("%p lock %s:%i\n"   , mutex, filename, fileline);
+#endif
        return -1;
 }
 
-int Thread_UnlockMutex(void *mutex)
+int _Thread_UnlockMutex(void *mutex, const char *filename, int fileline)
 {
+#ifdef THREADDEBUG
+       printf("%p unlock %s:%i\n" , mutex, filename, fileline);
+#endif
        return -1;
 }