From 70e5357a6bad84b714bc5f3742aee778cd2bf5ea Mon Sep 17 00:00:00 2001 From: cedric Date: Wed, 17 Nov 2010 16:26:08 +0000 Subject: [PATCH] * ecore: revert comment. This code is here to prevent the premature death of thread when apps killall of them, before recreating them again. This avoid call to pthread_create and increase throughput. The only information that I couldn't determine pragmatically is the timing. So that's the time the main loop has to create another Ecore_Thread, before needing to call pthread_create again. git-svn-id: http://svn.enlightenment.org/svn/e/trunk/ecore@54633 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/ecore/ecore_thread.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/lib/ecore/ecore_thread.c b/src/lib/ecore/ecore_thread.c index f5161f1..6981c4d 100644 --- a/src/lib/ecore/ecore_thread.c +++ b/src/lib/ecore/ecore_thread.c @@ -336,10 +336,7 @@ _ecore_thread_worker(Ecore_Pthread_Data *pth) pthread_mutex_unlock(&_ecore_pending_job_threads_mutex); /* Sleep a little to prevent premature death */ -// any code with something like this in it to "avoid some race condition" -// especially with just 200micro-seconds is asking for trouble. disable -// this. -// usleep(200); + usleep(200); pthread_mutex_lock(&_ecore_pending_job_threads_mutex); if (_ecore_pending_job_threads) -- 2.7.4