discomfitor pushed a commit to branch master.

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

commit 6eaa57852abd77901dc36cba838b6e6385a839dd
Author: Mike Blumenkrantz <[email protected]>
Date:   Mon Jun 25 17:27:18 2018 -0400

    ecore/thread: greatly reduce usleep time during shutdown loop
    
    Summary:
    now that ecore accurately waits on all threads while exiting, this
    loop needs to run much more frequently in order to avoid waiting for
    an unreasonably long time when exiting
    
    Reviewers: ManMower, devilhorns
    
    Reviewed By: ManMower
    
    Subscribers: cedric, #committers
    
    Tags: #efl
    
    Differential Revision: https://phab.enlightenment.org/D6427
---
 src/lib/ecore/ecore_thread.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/ecore/ecore_thread.c b/src/lib/ecore/ecore_thread.c
index 31330b1979..79afad5edf 100644
--- a/src/lib/ecore/ecore_thread.c
+++ b/src/lib/ecore/ecore_thread.c
@@ -627,7 +627,7 @@ _ecore_thread_shutdown(void)
           }
         SLKU(_ecore_pending_job_threads_mutex);
         iteration++;
-        if (test) usleep(50000);
+        if (test) usleep(1000);
      } while (test == EINA_TRUE && iteration < 20);
 
    if (iteration == 20 && _ecore_thread_count > 0)

-- 


Reply via email to