qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [RFC 6/8] timer: run timers on aio_poll


From: Liu Ping Fan
Subject: [Qemu-devel] [RFC 6/8] timer: run timers on aio_poll
Date: Sun, 21 Jul 2013 16:43:03 +0800

Stop call timers in main loop and let each mini event-loop
run its own timers.

Signed-off-by: Liu Ping Fan <address@hidden>
---
 aio-posix.c | 2 ++
 main-loop.c | 2 --
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/aio-posix.c b/aio-posix.c
index b68eccd..29c2769 100644
--- a/aio-posix.c
+++ b/aio-posix.c
@@ -191,6 +191,8 @@ bool aio_poll(AioContext *ctx, bool blocking)
         progress = true;
     }
 
+    qemu_run_all_timers();
+
     if (progress && !blocking) {
         return true;
     }
diff --git a/main-loop.c b/main-loop.c
index 4a94a52..46a98a3 100644
--- a/main-loop.c
+++ b/main-loop.c
@@ -467,8 +467,6 @@ int main_loop_wait(int nonblocking)
     slirp_pollfds_poll(gpollfds, (ret < 0));
 #endif
 
-    qemu_run_all_timers();
-
     return ret;
 }
 
-- 
1.8.1.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]