* 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.


SVN revision: 54633
This commit is contained in:
Cedric BAIL 2010-11-17 16:26:08 +00:00
parent e2ea02acfa
commit c381181854
1 changed files with 1 additions and 4 deletions

View 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)