Eina_Bool repack_needed : 1;
-#ifdef EINA_HAVE_THREADS
-# ifdef EINA_HAVE_DEBUG_THREADS
+#ifdef EINA_HAVE_DEBUG_THREADS
pthread_t self;
-# endif
- Eina_Lock mutex;
#endif
+ Eina_Lock mutex;
EINA_MAGIC;
};
c->allocated_range = NULL;
c->childs = NULL;
-#ifdef EINA_HAVE_THREADS
-# ifdef EINA_HAVE_DEBUG_THREADS
+#ifdef EINA_HAVE_DEBUG_THREADS
c->self = pthread_self();
-# endif
- eina_lock_new(&c->mutex);
#endif
+ eina_lock_new(&c->mutex);
EINA_MAGIC_SET(c, EINA_MAGIC_CLASS);
}
}
-#ifdef EINA_HAVE_THREADS
-# ifdef EINA_HAVE_DEBUG_THREADS
+#ifdef EINA_HAVE_DEBUG_THREADS
assert(pthread_equal(class->self, pthread_self()));
-# endif
- eina_lock_free(&class->mutex);
#endif
+ eina_lock_free(&class->mutex);
eina_mempool_del(class->mempool);
eina_mempool_free(_eina_class_mp, class);