eina: improve thread debugging and portability.
authorcedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 2 May 2011 11:25:35 +0000 (11:25 +0000)
committercedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 2 May 2011 11:25:35 +0000 (11:25 +0000)
commita700ab5f72aca13663cdbab89382a7002a2e88aa
treee8476a3492a5912496309fef834a714d110c5341
parent2675ea8b45b44003859043694a143b7ec860bcbf
eina: improve thread debugging and portability.

All thread debugging facility, including lock debug, on by turning --enable-debug-threads
at configure time of eina.

When threads check are disable, make sure that all lock/release are called
from the main loop only. And in all case, eina_lock_new/eina_lock_delete should be
called from the main loop.

Remove static initialization as it is not portable under Windows.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@59118 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33
src/include/eina_inline_lock_posix.x
src/include/eina_lock.h