mirror of https://github.com/xqemu/xqemu.git
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>
This commit is contained in:
parent
845ca10dd0
commit
d397ec99bb
|
@ -109,9 +109,6 @@ bool aio_poll(AioContext *ctx, bool blocking)
|
||||||
progress = true;
|
progress = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Run timers */
|
|
||||||
progress |= timerlistgroup_run_timers(&ctx->tlg);
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Then dispatch any pending callbacks from the GSource.
|
* 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) {
|
if (progress && !blocking) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue