From 8fdf5792bcce32a185ba216310f397e32d3cb795 Mon Sep 17 00:00:00 2001 From: caro Date: Sat, 23 Oct 2010 17:17:03 +0000 Subject: [PATCH] put EFL_DEBUG_THREADS inside EFL_HAVE_POSIX_THREADS git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@53816 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/modules/mp/one_big/eina_one_big.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/modules/mp/one_big/eina_one_big.c b/src/modules/mp/one_big/eina_one_big.c index 5feb70d..7f1cc21 100644 --- a/src/modules/mp/one_big/eina_one_big.c +++ b/src/modules/mp/one_big/eina_one_big.c @@ -102,9 +102,11 @@ eina_one_big_malloc(void *data, __UNUSED__ unsigned int size) WaitForSingleObject(pool->mutex, INFINITE); # endif } -# ifdef EFL_DEBUG_THREADS +# ifdef EFL_HAVE_POSIX_THREADS +# ifdef EFL_DEBUG_THREADS else assert(pthread_equal(pool->self, pthread_self())); +# endif # endif #endif @@ -187,9 +189,11 @@ eina_one_big_free(void *data, void *ptr) WaitForSingleObject(pool->mutex, INFINITE); # endif } -# ifdef EFL_DEBUG_THREADS +# ifdef EFL_HAVE_POSIX_THREADS +# ifdef EFL_DEBUG_THREADS else assert(pthread_equal(pool->self, pthread_self())); +# endif # endif #endif @@ -303,9 +307,11 @@ eina_one_big_shutdown(void *data) WaitForSingleObject(pool->mutex, INFINITE); # endif } -# ifdef EFL_DEBUG_THREADS +# ifdef EFL_HAVE_POSIX_THREADS +# ifdef EFL_DEBUG_THREADS else assert(pthread_equal(pool->self, pthread_self())); +# endif # endif #endif -- 2.7.4