evas: don't use EINA_LOCK_INITIALIZER and improve eina_threads call.
authorcedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 2 May 2011 11:28:47 +0000 (11:28 +0000)
committercedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 2 May 2011 11:28:47 +0000 (11:28 +0000)
commit67e48b8f832fd39d1e0ca7159f32e3abcca729a0
treeb737733b32fc58895f1603c5fb3efbeb7c32ee94
parentcf7dafaf7e6d60a6403009b841f31eec33913ca0
evas: don't use EINA_LOCK_INITIALIZER and improve eina_threads call.

Only call eina_threads_shutdown when thread are dead and not before.

Release and destroy thread lock before calling evas_async_events_process
as you should never have a lock taken in the main loop when calling it.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@59119 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33
src/lib/cache/evas_cache_image.c
src/lib/cache/evas_preload.c