From f66166540040c4e234417f32ad5b892de81e1ae5 Mon Sep 17 00:00:00 2001 From: cedric Date: Tue, 17 May 2011 10:15:19 +0000 Subject: [PATCH] eina: build without threads support. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@59467 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/eina_object.c | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/src/lib/eina_object.c b/src/lib/eina_object.c index 0d69833..528a023 100644 --- a/src/lib/eina_object.c +++ b/src/lib/eina_object.c @@ -139,12 +139,10 @@ struct _Eina_Class 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; }; @@ -582,12 +580,10 @@ eina_class_new(const char *name, 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); @@ -655,12 +651,10 @@ eina_class_del(Eina_Class *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); -- 2.7.4