git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/ecore@71550
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
if (_ecore_thread_worker_count > ((_ecore_thread_count_max + 1) * 16))
{
+ _ecore_thread_worker_count--;
free(worker);
return;
}
result = eina_trash_pop(&_ecore_thread_worker_trash);
- if (!result) result = calloc(1, sizeof(Ecore_Pthread_Worker));
- else _ecore_thread_worker_count--;
+ if (!result)
+ {
+ result = calloc(1, sizeof(Ecore_Pthread_Worker));
+ _ecore_thread_worker_count++;
+ }
LKI(result->cancel_mutex);
LKI(result->mutex);