summaryrefslogtreecommitdiff
path: root/src/lib/eina
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2015-05-14 09:19:53 +0200
committerCedric BAIL <cedric@osg.samsung.com>2015-05-14 18:41:48 +0200
commit3a6ccab3adada2daf29094c2fec661f71ac981ab (patch)
tree7b20a106acfe52e8e4415bff1f93a832a2900d84 /src/lib/eina
parentebaa04c3187d68875dc4b5eac5ee8e1d969511dd (diff)
eina: fix warning on Windows.
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Diffstat (limited to 'src/lib/eina')
-rw-r--r--src/lib/eina/eina_thread.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/eina/eina_thread.c b/src/lib/eina/eina_thread.c
index 86cb8a932b..cbc52ade83 100644
--- a/src/lib/eina/eina_thread.c
+++ b/src/lib/eina/eina_thread.c
@@ -102,14 +102,16 @@ _eina_internal_call(void *context)
102{ 102{
103 Eina_Thread_Call *c = context; 103 Eina_Thread_Call *c = context;
104 void *r; 104 void *r;
105#ifdef EINA_HAVE_DEBUG
105 pthread_t self; 106 pthread_t self;
107#endif
106 108
107 if (c->prio == EINA_THREAD_BACKGROUND || 109 if (c->prio == EINA_THREAD_BACKGROUND ||
108 c->prio == EINA_THREAD_IDLE) 110 c->prio == EINA_THREAD_IDLE)
109 eina_sched_prio_drop(); 111 eina_sched_prio_drop();
110 112
111 self = pthread_self();
112#ifdef EINA_HAVE_DEBUG 113#ifdef EINA_HAVE_DEBUG
114 self = pthread_self();
113 _eina_debug_thread_add(&self); 115 _eina_debug_thread_add(&self);
114#endif 116#endif
115 r = c->func((void*) c->data, eina_thread_self()); 117 r = c->func((void*) c->data, eina_thread_self());