implement threadsafety for arrays, alter all eina internal array usage to (hopefully...
authordiscomfitor <discomfitor>
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)
commit71307b6ae1affcff0d60a361f2b5ab60af4650b2
tree4a44a6d5843c9d43092eeda722e0c6fef3ab53c6
parent6f85c6f672cf3815a14628e34aaafe2670fd2ab7
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: http://svn.enlightenment.org/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