forked from enlightenment/efl
ecore: switch back to use ecore_thread_wait.
We need to make sure that we wait properly on the animator thread otherwise we end up with the animator finish callback being called later on during the shutdown process which means trouble.
This commit is contained in:
parent
bf7b3e5dfc
commit
4e1567b41e
|
@ -427,12 +427,7 @@ _timer_tick_quit(void)
|
|||
|
||||
if (timer_fd_read < 0) return;
|
||||
_tick_send(-1);
|
||||
// SHOULd use this, but broken if thread shutting down already:
|
||||
// ecore_thread_wait(timer_thread, 0.5);
|
||||
for (i = 0; (i < 500) && (timer_fd_write >= 0); i++)
|
||||
{
|
||||
usleep(1000);
|
||||
}
|
||||
if (timer_thread) ecore_thread_wait(timer_thread, 0.5);
|
||||
}
|
||||
|
||||
static Eina_Bool
|
||||
|
|
Loading…
Reference in New Issue