eina: fix warning on Windows.

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
This commit is contained in:
Vincent Torri 2015-05-14 09:19:53 +02:00 committed by Cedric BAIL
parent ebaa04c318
commit 3a6ccab3ad
1 changed files with 3 additions and 1 deletions

View File

@ -102,14 +102,16 @@ _eina_internal_call(void *context)
{
Eina_Thread_Call *c = context;
void *r;
#ifdef EINA_HAVE_DEBUG
pthread_t self;
#endif
if (c->prio == EINA_THREAD_BACKGROUND ||
c->prio == EINA_THREAD_IDLE)
eina_sched_prio_drop();
self = pthread_self();
#ifdef EINA_HAVE_DEBUG
self = pthread_self();
_eina_debug_thread_add(&self);
#endif
r = c->func((void*) c->data, eina_thread_self());