raster pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=89aeb2b682c74dee53ea88343243e9d82812bb55

commit 89aeb2b682c74dee53ea88343243e9d82812bb55
Author: Carsten Haitzler (Rasterman) <ras...@rasterman.com>
Date:   Wed Aug 9 16:18:10 2017 +0900

    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
---
 src/lib/ecore/ecore_glib.c | 7 ++-----
 1 file 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,
 
    ctx = g_main_context_default();
 
-   if (!g_main_context_acquire(ctx))
-     {
-        while (!g_main_context_is_owner(ctx))
-          g_thread_yield();
-     }
+   while (!g_main_context_acquire(ctx))
+     g_thread_yield();
 
 #if GLIB_CHECK_VERSION(2,32,0)
    g_rec_mutex_lock(_ecore_glib_select_lock);

-- 


Reply via email to