[evolution-mapi] Replace e_flag_timed_wait() with e_flag_wait_until()
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-mapi] Replace e_flag_timed_wait() with e_flag_wait_until()
- Date: Mon, 5 Nov 2012 19:22:59 +0000 (UTC)
commit 25166936f285fb4aa79ec16d334e1d9ce87a9fa4
Author: Milan Crha <mcrha redhat com>
Date: Mon Nov 5 20:21:55 2012 +0100
Replace e_flag_timed_wait() with e_flag_wait_until()
src/libexchangemapi/e-mapi-connection.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/src/libexchangemapi/e-mapi-connection.c b/src/libexchangemapi/e-mapi-connection.c
index ba45eef..9d15456 100644
--- a/src/libexchangemapi/e-mapi-connection.c
+++ b/src/libexchangemapi/e-mapi-connection.c
@@ -6461,7 +6461,7 @@ e_mapi_connection_notification_thread (gpointer user_data)
priv = conn->priv;
while (g_hash_table_size (priv->known_notifications) > 0) {
- GTimeVal tv;
+ gint64 end_time;
LOCK (NULL, NULL, NULL);
/* this returns MAPI_E_INVALID_PARAMETER when there
@@ -6471,11 +6471,10 @@ e_mapi_connection_notification_thread (gpointer user_data)
UNLOCK ();
/* poll not so often */
- g_get_current_time (&tv);
- g_time_val_add (&tv, G_USEC_PER_SEC * priv->notification_poll_seconds);
+ end_time = g_get_monotonic_time () + (G_TIME_SPAN_SECOND * priv->notification_poll_seconds);
e_flag_clear (priv->notification_flag);
- e_flag_timed_wait (priv->notification_flag, &tv);
+ e_flag_wait_until (priv->notification_flag, end_time);
}
return NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]