[evolution] 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] Replace e_flag_timed_wait() with e_flag_wait_until()
- Date: Mon, 5 Nov 2012 19:21:30 +0000 (UTC)
commit 136f4d53bd64ecd14df5035d5f3b46c748661724
Author: Milan Crha <mcrha redhat com>
Date: Mon Nov 5 20:20:31 2012 +0100
Replace e_flag_timed_wait() with e_flag_wait_until()
libemail-engine/e-mail-utils.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/libemail-engine/e-mail-utils.c b/libemail-engine/e-mail-utils.c
index d8a372e..fdc0e1e 100644
--- a/libemail-engine/e-mail-utils.c
+++ b/libemail-engine/e-mail-utils.c
@@ -335,12 +335,12 @@ try_open_book_client (EBookClient *book_client,
while (canceled = g_cancellable_is_cancelled (cancellable),
!canceled && !e_flag_is_set (flag)) {
- GTimeVal wait;
+ gint end_time;
- g_get_current_time (&wait);
- g_time_val_add (&wait, 250000); /* waits 250ms */
+ /* waits 250ms */
+ end_time = g_get_monotonic_time () + (G_TIME_SPAN_SECOND / 4);
- e_flag_timed_wait (flag, &wait);
+ e_flag_wait_until (flag, end_time);
}
if (canceled) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]