cedric pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=4e1567b41efe87bc0744fb45ccff7a2c76fd1fa1

commit 4e1567b41efe87bc0744fb45ccff7a2c76fd1fa1
Author: Cedric BAIL <ced...@osg.samsung.com>
Date:   Tue Mar 7 11:04:42 2017 -0800

    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

-- 


Reply via email to