[evolution-data-server/gnome-3-2] gdbus_proxy_call_sync: check sync flag more frequently



commit 82246c78c62c6cba885a632e8856fbbf299e6a6d
Author: Christophe Dumez <christophe dumez intel com>
Date:   Tue Oct 4 11:43:46 2011 +0300

    gdbus_proxy_call_sync: check sync flag more frequently
    
    This patch lowers the value used in g_usleep() from 250000us
    to 1000us in order to decrease latency.
    (cherry picked from commit d91010693f1ba9207219465d9b9052b6e6937cb6)

 libedataserver/e-gdbus-templates.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libedataserver/e-gdbus-templates.c b/libedataserver/e-gdbus-templates.c
index 17a89b4..973fa8c 100644
--- a/libedataserver/e-gdbus-templates.c
+++ b/libedataserver/e-gdbus-templates.c
@@ -1438,7 +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 (250000);
+			g_usleep (1000);
 			g_main_context_iteration (NULL, FALSE);
 		}
 	} else {



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