From 4e1567b41efe87bc0744fb45ccff7a2c76fd1fa1 Mon Sep 17 00:00:00 2001 From: Cedric BAIL Date: Tue, 7 Mar 2017 11:04:42 -0800 Subject: [PATCH] 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. --- src/lib/ecore/ecore_anim.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/lib/ecore/ecore_anim.c b/src/lib/ecore/ecore_anim.c index 452cbb7..cee9387 100644 --- a/src/lib/ecore/ecore_anim.c +++ b/src/lib/ecore/ecore_anim.c @@ -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 -- 2.7.4