]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - thread.h
qdefs: Define separate FLOAT_ and DOUBLE_ versions of lossless format and true for...
[xonotic/darkplaces.git] / thread.h
index a9a00658bfc97f19ff7e715c9e91666c22042302..ac72b2827e22955788278655c1e1b6c63a430d1b 100644 (file)
--- a/thread.h
+++ b/thread.h
@@ -1,7 +1,9 @@
 #ifndef THREAD_H
 #define THREAD_H
 
-// enable Sys_PrintfToTerminal calls on nearly every threading call
+#include "qtypes.h"
+
+// enable Sys_Printf calls on nearly every threading call
 //#define THREADDEBUG
 //#define THREADDISABLE
 // use recursive mutex (non-posix) extensions in thread_pthread
@@ -35,7 +37,7 @@ typedef struct {int value;} Thread_Atomic;
 
 int Thread_Init(void);
 void Thread_Shutdown(void);
-qboolean Thread_HasThreads(void);
+qbool Thread_HasThreads(void);
 void *_Thread_CreateMutex(const char *filename, int fileline);
 void _Thread_DestroyMutex(void *mutex, const char *filename, int fileline);
 int _Thread_LockMutex(void *mutex, const char *filename, int fileline);
@@ -54,8 +56,8 @@ int _Thread_AtomicGet(Thread_Atomic *ref, const char *filename, int fileline);
 int _Thread_AtomicSet(Thread_Atomic *ref, int v, const char *filename, int fileline);
 int _Thread_AtomicAdd(Thread_Atomic *ref, int v, const char *filename, int fileline);
 void _Thread_AtomicIncRef(Thread_Atomic *ref, const char *filename, int fileline);
-qboolean _Thread_AtomicDecRef(Thread_Atomic *ref, const char *filename, int fileline);
-qboolean _Thread_AtomicTryLock(Thread_SpinLock *lock, const char *filename, int fileline);
+qbool _Thread_AtomicDecRef(Thread_Atomic *ref, const char *filename, int fileline);
+qbool _Thread_AtomicTryLock(Thread_SpinLock *lock, const char *filename, int fileline);
 void _Thread_AtomicLock(Thread_SpinLock *lock, const char *filename, int fileline);
 void _Thread_AtomicUnlock(Thread_SpinLock *lock, const char *filename, int fileline);