[grilo/0.1.x] core: use current thread to synchronously wait instead of main thread



commit fb8307aaf9b6e77e63f3f5d74db6a4dc10706acc
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]