implement threadsafety for arrays, alter all eina internal array usage to (hopefully...
authordiscomfitor <discomfitor@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 10 Aug 2010 03:26:15 +0000 (03:26 +0000)
committerdiscomfitor <discomfitor@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 10 Aug 2010 03:26:15 +0000 (03:26 +0000)
commit94b3adcd96d9f5db7474ab3c0ec9f3a80947bb02
tree4a44a6d5843c9d43092eeda722e0c6fef3ab53c6
parentce1b103e7c1c36964f76b919f574bb87e8a63808
implement threadsafety for arrays, alter all eina internal array usage to (hopefully) be threadsafe
call eina_threads_init() to enable this if you have pthread rwlock support (posix 2001)
note some function prototypes have lost const on array params to allow locking
WARNING: you should NOT call eina_threads_shutdown unless you are positive that you will not use any arrays which were created while threadsafe mode were enabled, and vice versa.  Failing to adhere to this warning WILL result in either deadlocks or memory leaks.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@50951 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33
14 files changed:
src/include/eina_array.h
src/include/eina_inline_array.x
src/include/eina_module.h
src/include/eina_private.h
src/lib/eina_array.c
src/lib/eina_benchmark.c
src/lib/eina_main.c
src/lib/eina_module.c
src/lib/eina_rbtree.c
src/tests/eina_bench_array.c
src/tests/eina_bench_hash.c
src/tests/eina_test_array.c
src/tests/eina_test_benchmark.c
src/tests/eina_test_rbtree.c