attempt to fix image preload thread bugs 1: module refcount.
authorbarbieri <barbieri@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 23 Dec 2008 21:20:43 +0000 (21:20 +0000)
committerbarbieri <barbieri@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 23 Dec 2008 21:20:43 +0000 (21:20 +0000)
commit2cba317c98f3cbc42a77614fa5a967f3dc727340
tree67183e3848d831c8eebdbddec555f0f827b7143e
parent11a8fd8890dfd253c01b696be750cf6b7ae48fd4
attempt to fix image preload thread bugs 1: module refcount.

image preload will use modules from threads, there is a possibility to
crash due wrong reference counting.

actually much more can fail, we need to check modules don't keep that
needs exclusive access in globals or per-Evas_Module, but that's
another issue.

TODO: replace spinlocks with atomic operations.

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