aboutsummaryrefslogtreecommitdiff
path: root/aio-win32.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2014-07-09 11:53:02 +0200
committerStefan Hajnoczi <stefanha@redhat.com>2014-08-29 10:46:58 +0100
commitd397ec99bb1c03a06afbeab7bfa65a43138eafb6 (patch)
tree91897786c683aab0632bd5a76659733ef4525992 /aio-win32.c
parent845ca10dd089b4e48f0a79bad005fb30eb77584e (diff)
aio-win32: Evaluate timers after handles
This is similar to what aio_poll does in the stand-alone case. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'aio-win32.c')
-rw-r--r--aio-win32.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/aio-win32.c b/aio-win32.c
index fe7ee5bb22..7b284119e0 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;
}