aboutsummaryrefslogtreecommitdiffstats
path: root/legacy/ecore/src/lib/ecore/ecore.c
diff options
context:
space:
mode:
authorCedric BAIL <cedric.bail@free.fr>2011-09-16 09:31:47 +0000
committerCedric BAIL <cedric.bail@free.fr>2011-09-16 09:31:47 +0000
commitd64c1b95668d334f0693de25b08bff4893b61113 (patch)
tree980dd4a6dd4de409b3d84ca82af5c20039e0fb83 /legacy/ecore/src/lib/ecore/ecore.c
parentfix configure output (diff)
downloadefl-d64c1b95668d334f0693de25b08bff4893b61113.tar.gz
ecore: reduce race condition.
SVN revision: 63436
Diffstat (limited to 'legacy/ecore/src/lib/ecore/ecore.c')
-rw-r--r--legacy/ecore/src/lib/ecore/ecore.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/legacy/ecore/src/lib/ecore/ecore.c b/legacy/ecore/src/lib/ecore/ecore.c
index c2e4c22249..7c7252d116 100644
--- a/legacy/ecore/src/lib/ecore/ecore.c
+++ b/legacy/ecore/src/lib/ecore/ecore.c
@@ -377,9 +377,8 @@ ecore_thread_main_loop_end(void)
if (_thread_loop > 0)
return _thread_loop;
- eina_condition_broadcast(&_thread_cond);
-
eina_lock_take(&_thread_feedback_mutex);
+ eina_condition_broadcast(&_thread_cond);
eina_condition_wait(&_thread_feedback_cond);
eina_lock_release(&_thread_feedback_mutex);