put EFL_DEBUG_THREADS inside EFL_HAVE_POSIX_THREADS

SVN revision: 53816
This commit is contained in:
Vincent Torri 2010-10-23 17:17:03 +00:00
parent 4b1e2abc23
commit f9da29e6a6
1 changed files with 9 additions and 3 deletions

View File

@ -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