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

View File

@ -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)
{