X-Git-Url: http://git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=blobdiff_plain;f=thread_pthread.c;h=2f8273ab41315f578c998a0344705ff8bbf864c8;hp=ec1f91776f122339271eb2d34e5b1c6ffcad3474;hb=6167697dced0c996142de886b52c3e9a119537a2;hpb=6765d73ceb93553eef65c72f5f80f71f13771d12 diff --git a/thread_pthread.c b/thread_pthread.c index ec1f9177..2f8273ab 100644 --- a/thread_pthread.c +++ b/thread_pthread.c @@ -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