Changeset 55aeca35b861a188c4447349fb9c189a1304d4f5

Show
Ignore:
Timestamp:
08/05/08 20:38:08 (5 months ago)
Author:
Rémi Denis-Courmont <rem@videolan.org>
git-committer:
Rémi Denis-Courmont <rem@videolan.org> 1210271888 +0300
git-parent:

[2add48902670c9b3885b4450d8d0f6a375731956]

git-author:
Rémi Denis-Courmont <rem@videolan.org> 1210271888 +0300
Message:

Mutexes cannot be error-checking and recursive at the same time

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/misc/threads.c

    r29e6e23 r55aeca3  
    270270 
    271271    pthread_mutexattr_init( &attr ); 
    272 # ifndef NDEBUG 
    273     /* Create error-checking mutex to detect problems more easily. */ 
    274 #   if defined(SYS_LINUX) 
    275     pthread_mutexattr_setkind_np( &attr, PTHREAD_MUTEX_ERRORCHECK_NP ); 
    276 #   else 
    277     pthread_mutexattr_settype( &attr, PTHREAD_MUTEX_ERRORCHECK ); 
    278 #   endif 
    279 # endif 
    280272    pthread_mutexattr_settype( &attr, PTHREAD_MUTEX_RECURSIVE ); 
    281273    i_result = pthread_mutex_init( p_mutex, &attr );