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
This commit is contained in:
Mike Blumenkrantz 2018-06-25 17:27:18 -04:00
parent 1dc706a3dd
commit 6eaa57852a
1 changed files with 1 additions and 1 deletions

View File

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