Received: from eggs.gnu.org ([2001:4830:134:3::10]:46687) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X4oZG-0005Pj-A9 for qemu-devel@nongnu.org; Wed, 09 Jul 2014 05:53:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X4oZ4-00010G-JD for qemu-devel@nongnu.org; Wed, 09 Jul 2014 05:53:38 -0400 Received: from mail-qa0-x230.google.com ([2607:f8b0:400d:c00::230]:37641) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X4oZ4-0000zZ-Ez for qemu-devel@nongnu.org; Wed, 09 Jul 2014 05:53:26 -0400 Received: by mail-qa0-f48.google.com with SMTP id x12so5801686qac.7 for ; Wed, 09 Jul 2014 02:53:26 -0700 (PDT) Received: from yakj.usersys.redhat.com (net-2-35-201-190.cust.vodafonedsl.it. [2.35.201.190]) by mx.google.com with ESMTPSA id j97sm31669122qgd.37.2014.07.09.02.53.24 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 Jul 2014 02:53:25 -0700 (PDT) Sender: Paolo Bonzini From: Paolo Bonzini Date: Wed, 9 Jul 2014 11:53:02 +0200 Message-Id: <1404899590-24973-3-git-send-email-pbonzini@redhat.com> In-Reply-To: <1404899590-24973-1-git-send-email-pbonzini@redhat.com> References: <1404899590-24973-1-git-send-email-pbonzini@redhat.com> Subject: [Qemu-devel] [PATCH 02/10] aio-win32: Evaluate timers after handles List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org This is similar to what aio_poll does in the stand-alone case. Signed-off-by: Paolo Bonzini --- 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