From 01322eefa0e795cc6aa7dabaf40d44e1f7c8de62 Mon Sep 17 00:00:00 2001 From: cedric Date: Mon, 30 May 2011 12:49:04 +0000 Subject: [PATCH] eina: ERROR_CHECK just make sense when you are debbuging lock usage. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@59811 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/include/eina_inline_lock_posix.x | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/include/eina_inline_lock_posix.x b/src/include/eina_inline_lock_posix.x index dbd4748..4c111ed 100644 --- a/src/include/eina_inline_lock_posix.x +++ b/src/include/eina_inline_lock_posix.x @@ -98,9 +98,9 @@ eina_lock_new(Eina_Lock *mutex) return EINA_FALSE; /* NOTE: PTHREAD_MUTEX_RECURSIVE is not allowed at all, you will break on/off feature for sure with that change. */ +#ifdef EINA_HAVE_DEBUG_THREADS if (pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_ERRORCHECK) != 0) return EINA_FALSE; -#ifdef EINA_HAVE_DEBUG_THREADS memset(mutex, 0, sizeof(Eina_Lock)); #endif if (pthread_mutex_init(&(mutex->mutex), &attr) != 0) -- 2.7.4