[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
- [Qemu-devel] [RFC 0/8] arm AioContext with its own timer stuff, Liu Ping Fan, 2013/07/21
- [Qemu-devel] [RFC 1/8] timer: associate alarm_timer with AioContext, Liu Ping Fan, 2013/07/21
- [Qemu-devel] [RFC 2/8] timer: pick out timer list info from QemuClock, Liu Ping Fan, 2013/07/21
- [Qemu-devel] [RFC 3/8] timer: make timers_state static, Liu Ping Fan, 2013/07/21
- [Qemu-devel] [RFC 4/8] timer: protect timers_state with lock, Liu Ping Fan, 2013/07/21
- [Qemu-devel] [RFC 5/8] timer: associate timer with AioContext, Liu Ping Fan, 2013/07/21
- [Qemu-devel] [RFC 6/8] timer: run timers on aio_poll,
Liu Ping Fan <=
- [Qemu-devel] [RFC 7/8] block: associate BlockDriverState with AioContext, Liu Ping Fan, 2013/07/21
- [Qemu-devel] [RFC 8/8] block: enable throttle with aiocontext, Liu Ping Fan, 2013/07/21
- Re: [Qemu-devel] [RFC 0/8] arm AioContext with its own timer stuff, Alex Bligh, 2013/07/21