summaryrefslogtreecommitdiff
path: root/src/lib/ecore
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@gmail.com>2012-12-06 00:30:46 +0000
committerGustavo Sverzut Barbieri <barbieri@gmail.com>2012-12-06 00:30:46 +0000
commit2731721d50c7a544cb9672d3ab5738cccecfcb58 (patch)
tree7501cf74d2d1025221905d6ece1294d4d5ff2b27 /src/lib/ecore
parentd69c4b6208df9dc50c579f926972eb1f34dd4d6c (diff)
efl: thread safety by default.
it's better to test this case and make it the only one and make it work, than have two options that may not work. SVN revision: 80290
Diffstat (limited to 'src/lib/ecore')
-rw-r--r--src/lib/ecore/ecore_private.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/lib/ecore/ecore_private.h b/src/lib/ecore/ecore_private.h
index f0add822fe..7e7ff3a16e 100644
--- a/src/lib/ecore/ecore_private.h
+++ b/src/lib/ecore/ecore_private.h
@@ -246,12 +246,7 @@ extern Eina_Lock _ecore_main_loop_lock;
246static inline void 246static inline void
247_ecore_lock(void) 247_ecore_lock(void)
248{ 248{
249#ifdef HAVE_THREAD_SAFETY
250 eina_lock_take(&_ecore_main_loop_lock); 249 eina_lock_take(&_ecore_main_loop_lock);
251#else
252 /* at least check we're not being called from a thread */
253 EINA_MAIN_LOOP_CHECK_RETURN;
254#endif
255 _ecore_main_lock_count++; 250 _ecore_main_lock_count++;
256 /* assert(_ecore_main_lock_count == 1); */ 251 /* assert(_ecore_main_lock_count == 1); */
257} 252}
@@ -261,9 +256,7 @@ _ecore_unlock(void)
261{ 256{
262 _ecore_main_lock_count--; 257 _ecore_main_lock_count--;
263 /* assert(_ecore_main_lock_count == 0); */ 258 /* assert(_ecore_main_lock_count == 0); */
264#ifdef HAVE_THREAD_SAFETY
265 eina_lock_release(&_ecore_main_loop_lock); 259 eina_lock_release(&_ecore_main_loop_lock);
266#endif
267} 260}
268 261
269/* 262/*