[PATCH 1/2] sync: use current thread to synchronously wait instead of main thread



From: Lionel Landwerlin <lionel g landwerlin linux intel com>

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) {
-- 
1.7.5.4



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