From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46815) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XNP4W-0007aQ-Sh for qemu-devel@nongnu.org; Fri, 29 Aug 2014 12:30:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XNP4P-0002qy-MO for qemu-devel@nongnu.org; Fri, 29 Aug 2014 12:30:44 -0400 Received: from mx1.redhat.com ([209.132.183.28]:4458) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XNP4P-0002qh-8i for qemu-devel@nongnu.org; Fri, 29 Aug 2014 12:30:37 -0400 From: Stefan Hajnoczi Date: Fri, 29 Aug 2014 17:29:41 +0100 Message-Id: <1409329803-20744-14-git-send-email-stefanha@redhat.com> In-Reply-To: <1409329803-20744-1-git-send-email-stefanha@redhat.com> References: <1409329803-20744-1-git-send-email-stefanha@redhat.com> Subject: [Qemu-devel] [PULL 13/35] aio-win32: Evaluate timers after handles List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Peter Maydell , Stefan Hajnoczi , Paolo Bonzini From: Paolo Bonzini This is similar to what aio_poll does in the stand-alone case. Signed-off-by: Paolo Bonzini Signed-off-by: Stefan Hajnoczi --- 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