Commit 3be1d26c authored by Ian Lynagh's avatar Ian Lynagh
Browse files

Always use PTHREAD_MUTEX_ERRORCHECK to create mutexes when -DDEBUG

Linux defines PTHREAD_MUTEX_ERRORCHECK = PTHREAD_MUTEX_ERRORCHECK_NP
anyway, so there's no need to special-case it.
parent dd3d9333
......@@ -107,11 +107,7 @@ initMutex(Mutex* pMut)
#if defined(DEBUG)
pthread_mutexattr_t attr;
pthread_mutexattr_init(&attr);
#if defined(linux_HOST_OS)
pthread_mutexattr_settype(&attr,PTHREAD_MUTEX_ERRORCHECK_NP);
#else
pthread_mutexattr_settype(&attr,PTHREAD_MUTEX_ERRORCHECK);
#endif
pthread_mutex_init(pMut,&attr);
#else
pthread_mutex_init(pMut,NULL);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment