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: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/ecore@54633
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
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)