[grilo] core: use current thread to synchronously wait instead of main thread



commit 920ada716b59e8a871155d3bc376f0fb297b24d7
Author: Lionel Landwerlin <lionel g landwerlin linux intel com>
Date:   Thu Jun 16 18:53:49 2011 +0100

    core: use current thread to synchronously wait instead of main thread
    
    Signed-off-by: Lionel Landwerlin <lionel g landwerlin linux intel com>

 src/grl-sync.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/grl-sync.c b/src/grl-sync.c
index 55fb6c3..9fc8ca2 100644
--- a/src/grl-sync.c
+++ b/src/grl-sync.c
@@ -28,7 +28,7 @@ grl_wait_for_async_operation_complete (GrlDataSync *ds)
   GMainLoop *ml;
   GMainContext *mc;
 
-  ml = g_main_loop_new (NULL, TRUE);
+  ml = g_main_loop_new (g_main_context_get_thread_default (), TRUE);
   mc = g_main_loop_get_context (ml);
 
  while (!ds->complete) {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]