summaryrefslogtreecommitdiff
path: root/src/lib/ecore
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2017-08-09 16:18:10 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2017-08-09 16:19:45 +0900
commit89aeb2b682c74dee53ea88343243e9d82812bb55 (patch)
treeb69ecc886d771a71a3d1daa2d0b07aa1d5b3ae5a /src/lib/ecore
parentc311dc638b8358f27664fba3985d9212748cf92a (diff)
ecore glib support - if we are not the main ctx owner loop to acquire
the code didn't try acquire every loop if we were not, so it wouldnt wake up if someone stole context (and then gave it up). found by roy! @fix
Diffstat (limited to 'src/lib/ecore')
-rw-r--r--src/lib/ecore/ecore_glib.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/lib/ecore/ecore_glib.c b/src/lib/ecore/ecore_glib.c
index 7232d15ea5..bcc4b30ff9 100644
--- a/src/lib/ecore/ecore_glib.c
+++ b/src/lib/ecore/ecore_glib.c
@@ -193,11 +193,8 @@ _ecore_glib_select(int ecore_fds,
193 193
194 ctx = g_main_context_default(); 194 ctx = g_main_context_default();
195 195
196 if (!g_main_context_acquire(ctx)) 196 while (!g_main_context_acquire(ctx))
197 { 197 g_thread_yield();
198 while (!g_main_context_is_owner(ctx))
199 g_thread_yield();
200 }
201 198
202#if GLIB_CHECK_VERSION(2,32,0) 199#if GLIB_CHECK_VERSION(2,32,0)
203 g_rec_mutex_lock(_ecore_glib_select_lock); 200 g_rec_mutex_lock(_ecore_glib_select_lock);