forked from enlightenment/efl
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:
parent
1dc706a3dd
commit
6eaa57852a
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue