put EFL_DEBUG_THREADS inside EFL_HAVE_POSIX_THREADS
authorcaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sat, 23 Oct 2010 17:17:03 +0000 (17:17 +0000)
committercaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sat, 23 Oct 2010 17:17:03 +0000 (17:17 +0000)
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

index 5feb70d..7f1cc21 100644 (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