* ecore: revert comment.
authorcedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 17 Nov 2010 16:26:08 +0000 (16:26 +0000)
committercedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 17 Nov 2010 16:26:08 +0000 (16:26 +0000)
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

index f5161f1..6981c4d 100644 (file)
@@ -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)