From b45561750039792a8d8c8def76f1bdc4812b962f Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Tue, 26 Jun 2018 16:37:08 -0400 Subject: [PATCH] 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;