forked from enlightenment/efl
* 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:
parent
e2ea02acfa
commit
c381181854
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue