[evolution-data-server/gnome-3-2] gdbus_proxy_call_sync: stop using g_usleep()



commit 617af365f053c31118e253c831694459867318b8
Author: Christophe Dumez <christophe dumez intel com>
Date:   Mon Oct 10 09:51:11 2011 +0300

    gdbus_proxy_call_sync: stop using g_usleep()
    
    Instead, tell g_main_context_iteration() that it may block if no
    event source is ready.
    (cherry picked from commit cf78ee827d3c5157e44a1e4c32d395942a816461)

 libedataserver/e-gdbus-templates.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/libedataserver/e-gdbus-templates.c b/libedataserver/e-gdbus-templates.c
index 973fa8c..b420d99 100644
--- a/libedataserver/e-gdbus-templates.c
+++ b/libedataserver/e-gdbus-templates.c
@@ -1438,8 +1438,7 @@ gdbus_proxy_call_sync (GDBusProxy *proxy,
 		 * from the main thread, then there is probably no other option.
 		*/
 		while (!e_flag_is_set (sync_data.flag)) {
-			g_usleep (1000);
-			g_main_context_iteration (NULL, FALSE);
+			g_main_context_iteration (NULL, TRUE);
 		}
 	} else {
 		/* is called in a dedicated thread */



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