[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 02/10] aio-win32: Evaluate timers after handles
From: |
Paolo Bonzini |
Subject: |
[Qemu-devel] [PATCH 02/10] aio-win32: Evaluate timers after handles |
Date: |
Wed, 9 Jul 2014 11:53:02 +0200 |
This is similar to what aio_poll does in the stand-alone case.
Signed-off-by: Paolo Bonzini <address@hidden>
---
aio-win32.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/aio-win32.c b/aio-win32.c
index fe7ee5b..7b28411 100644
--- a/aio-win32.c
+++ b/aio-win32.c
@@ -109,9 +109,6 @@ bool aio_poll(AioContext *ctx, bool blocking)
progress = true;
}
- /* Run timers */
- progress |= timerlistgroup_run_timers(&ctx->tlg);
-
/*
* Then dispatch any pending callbacks from the GSource.
*
@@ -145,6 +142,9 @@ bool aio_poll(AioContext *ctx, bool blocking)
}
}
+ /* Run timers */
+ progress |= timerlistgroup_run_timers(&ctx->tlg);
+
if (progress && !blocking) {
return true;
}
--
1.9.3
- [Qemu-devel] [PATCH for-2.2 00/10] AioContext cleanups and Win32 socket support, Paolo Bonzini, 2014/07/09
- [Qemu-devel] [PATCH 01/10] AioContext: take bottom halves into account when computing aio_poll timeout, Paolo Bonzini, 2014/07/09
- [Qemu-devel] [PATCH 03/10] aio-win32: Factor out duplicate code into aio_dispatch_handlers, Paolo Bonzini, 2014/07/09
- [Qemu-devel] [PATCH 02/10] aio-win32: Evaluate timers after handles,
Paolo Bonzini <=
- [Qemu-devel] [PATCH 04/10] AioContext: run bottom halves after polling, Paolo Bonzini, 2014/07/09
- [Qemu-devel] [PATCH 05/10] AioContext: export and use aio_dispatch, Paolo Bonzini, 2014/07/09
- [Qemu-devel] [PATCH 06/10] test-aio: test timers on Windows too, Paolo Bonzini, 2014/07/09
- [Qemu-devel] [PATCH 07/10] aio-win32: add aio_set_dispatching optimization, Paolo Bonzini, 2014/07/09
- [Qemu-devel] [PATCH 08/10] AioContext: introduce aio_prepare, Paolo Bonzini, 2014/07/09
- [Qemu-devel] [PATCH 09/10] qemu-coroutine-io: fix for Win32, Paolo Bonzini, 2014/07/09
- [Qemu-devel] [PATCH 10/10] aio-win32: add support for sockets, Paolo Bonzini, 2014/07/09