[vlc-devel] commit: Mutexes cannot be error-checking and recursive at the same time ( Rémi Denis-Courmont )
git version control
git at videolan.org
Thu May 8 20:37:03 CEST 2008
vlc | branch: master | Rémi Denis-Courmont <rem at videolan.org> | Thu May 8 21:38:08 2008 +0300| [55aeca35b861a188c4447349fb9c189a1304d4f5]
Mutexes cannot be error-checking and recursive at the same time
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=55aeca35b861a188c4447349fb9c189a1304d4f5
---
src/misc/threads.c | 8 --------
1 files changed, 0 insertions(+), 8 deletions(-)
diff --git a/src/misc/threads.c b/src/misc/threads.c
index eb907ee..103b456 100644
--- a/src/misc/threads.c
+++ b/src/misc/threads.c
@@ -269,14 +269,6 @@ int vlc_mutex_init_recursive( vlc_mutex_t *p_mutex )
int i_result;
pthread_mutexattr_init( &attr );
-# ifndef NDEBUG
- /* Create error-checking mutex to detect problems more easily. */
-# if defined(SYS_LINUX)
- pthread_mutexattr_setkind_np( &attr, PTHREAD_MUTEX_ERRORCHECK_NP );
-# else
- pthread_mutexattr_settype( &attr, PTHREAD_MUTEX_ERRORCHECK );
-# endif
-# endif
pthread_mutexattr_settype( &attr, PTHREAD_MUTEX_RECURSIVE );
i_result = pthread_mutex_init( p_mutex, &attr );
pthread_mutexattr_destroy( &attr );
More information about the vlc-devel
mailing list