bu5hm4n pushed a commit to branch master.

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

commit b45561750039792a8d8c8def76f1bdc4812b962f
Author: Mike Blumenkrantz <[email protected]>
Date:   Tue Jun 26 16:37:08 2018 -0400

    ecore/thread: flush main loop threads during ecore_thread_wait()
    
    this avoids the case where the main loop is waiting on a thread
    and that same thread is waiting on the main loop
    
    @fix
    
    Differential Revision: https://phab.enlightenment.org/D6438
---
 src/lib/ecore/ecore_thread.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/lib/ecore/ecore_thread.c b/src/lib/ecore/ecore_thread.c
index a00eb5fb48..8c95dd96da 100644
--- a/src/lib/ecore/ecore_thread.c
+++ b/src/lib/ecore/ecore_thread.c
@@ -869,7 +869,8 @@ ecore_thread_wait(Ecore_Thread *thread, double wait)
         double start, end;
 
         start = ecore_time_get();
-        ecore_main_loop_thread_safe_call_wait(wait);
+        _ecore_main_call_flush();
+        ecore_main_loop_thread_safe_call_wait(0.0001);
         end = ecore_time_get();
 
         wait -= end - start;

-- 


Reply via email to