From: cedric Date: Tue, 28 Jun 2011 14:53:34 +0000 (+0000) Subject: ecore: actually limit the number of pipe in the cache. X-Git-Tag: accepted/2.0/20130306.224007~195^2~32 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2219473ee0b860f0610026d04a7b0be6afd0f58b;p=profile%2Fivi%2Fecore.git ecore: actually limit the number of pipe in the cache. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/ecore@60763 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/lib/ecore/ecore_thread.c b/src/lib/ecore/ecore_thread.c index 5c62e33..027da74 100644 --- a/src/lib/ecore/ecore_thread.c +++ b/src/lib/ecore/ecore_thread.c @@ -420,7 +420,10 @@ _ecore_thread_pipe_free(void *data __UNUSED__, void *event) { Ecore_Pipe *p = event; - eina_array_push(_ecore_thread_pipe, p); + if (eina_array_count_get(_ecore_thread_pipe) < 50) + eina_array_push(_ecore_thread_pipe, p); + else + ecore_pipe_del(p); eina_threads_shutdown(); }