Commit 53c895bc authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Force normal rather than default mutexes in release mode

parent 98691bc7
......@@ -141,7 +141,9 @@ void vlc_mutex_init( vlc_mutex_t *p_mutex )
if( pthread_mutexattr_init( &attr ) )
abort();
#ifndef NDEBUG
#ifdef NDEBUG
pthread_mutexattr_settype( &attr, PTHREAD_MUTEX_NORMAL );
#else
/* Create error-checking mutex to detect problems more easily. */
# if defined (__GLIBC__) && (__GLIBC_MINOR__ < 6)
pthread_mutexattr_setkind_np( &attr, PTHREAD_MUTEX_ERRORCHECK_NP );
......
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