]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - thread_pthread.c
com_list.h: Fix copy/paste oversight where List_For_Each_Entry went backwards like...
[xonotic/darkplaces.git] / thread_pthread.c
index ec1f91776f122339271eb2d34e5b1c6ffcad3474..2f8273ab41315f578c998a0344705ff8bbf864c8 100644 (file)
@@ -16,7 +16,7 @@ void Thread_Shutdown(void)
 {
 }
 
-qboolean Thread_HasThreads(void)
+qbool Thread_HasThreads(void)
 {
        return true;
 }
@@ -34,6 +34,7 @@ void *_Thread_CreateMutex(const char *filename, int fileline)
        pthread_mutexattr_init(&attr);
        pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
        pthread_mutex_init(mutexp, &attr);
+       pthread_mutexattr_destroy(&attr);
 #else
        pthread_mutex_init(mutexp, NULL);
 #endif