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
This commit is contained in:
Mike Blumenkrantz 2018-06-26 16:37:08 -04:00 committed by Marcel Hollerbach
parent 04d209e238
commit b455617500
1 changed files with 2 additions and 1 deletions

View File

@ -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;