bu5hm4n pushed a commit to branch master.

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

commit 2ee83cc28dbfb5116a7064af6162305297a24d51
Author: Mike Blumenkrantz <[email protected]>
Date:   Tue Jun 26 16:34:24 2018 -0400

    ecore/thread: increase loop iterations when waiting during shutdown
    
    since this is now a smaller wait interval, looping more times helps
    ensure success for threads which have longer blocking operations
    between lifetime checks
    
    Differential Revision: https://phab.enlightenment.org/D6436
---
 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 79afad5edf..ab58c0eea4 100644
--- a/src/lib/ecore/ecore_thread.c
+++ b/src/lib/ecore/ecore_thread.c
@@ -628,7 +628,7 @@ _ecore_thread_shutdown(void)
         SLKU(_ecore_pending_job_threads_mutex);
         iteration++;
         if (test) usleep(1000);
-     } while (test == EINA_TRUE && iteration < 20);
+     } while (test == EINA_TRUE && iteration < 50);
 
    if (iteration == 20 && _ecore_thread_count > 0)
      {

-- 


Reply via email to