aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2018-06-25 17:27:18 -0400
committerMike Blumenkrantz <zmike@samsung.com>2018-06-25 17:27:18 -0400
commit6eaa57852abd77901dc36cba838b6e6385a839dd (patch)
treeae68b89903a465bf6c180c2db2e8078ab8d9e041
parentecore/thread: track "no_queue" threads (diff)
downloadefl-6eaa57852abd77901dc36cba838b6e6385a839dd.tar.gz
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
-rw-r--r--src/lib/ecore/ecore_thread.c2
1 files changed, 1 insertions, 1 deletions
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)