forked from enlightenment/efl
ecore_thread: reset waiter and worker when we have failed
otherwise the func_end and func_cancel can get into a endless recursion.
This commit is contained in:
parent
4b18b472ba
commit
f32486ced5
|
@ -863,7 +863,15 @@ ecore_thread_wait(Ecore_Thread *thread, double wait)
|
||||||
if (wait <= 0) break;
|
if (wait <= 0) break;
|
||||||
}
|
}
|
||||||
|
|
||||||
return (waiter.data == NULL) ? EINA_TRUE : EINA_FALSE;
|
if (!waiter.data)
|
||||||
|
{
|
||||||
|
return EINA_TRUE;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
_ecore_thread_wait_reset(&waiter, worker);
|
||||||
|
return EINA_FALSE;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
EAPI Eina_Bool
|
EAPI Eina_Bool
|
||||||
|
|
Loading…
Reference in New Issue