evas preload: keep the preload thread alive.
authorbarbieri <barbieri@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 23 Jan 2009 20:36:04 +0000 (20:36 +0000)
committerbarbieri <barbieri@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 23 Jan 2009 20:36:04 +0000 (20:36 +0000)
commitc75fe8f5d04a8a5a7835177dbe96bbe31be6c1b8
treef6584c7899e2a4e51adfffb5ac62ac4ecf7e20ae
parenta58905ea942f1d40e031b9688086228c73fb2a71
evas preload: keep the preload thread alive.

before, when no more images were to be preloaded asynchronously, the
thread exited, but were not collected. This leads to a huge leak if
the process is doing aggressive use of image preloading (ie: photo
wall).

collecting dead threads in a proper way (read: without race
conditions) is a bit harder than keeping just one thread alive,
forever. As we do that for evas_pipe (the renderer), let's do the same
with preload and save code.

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