qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [RFC] [PATCHv6 10/16] aio / timers: aio_ctx_prepare set


From: Stefan Hajnoczi
Subject: Re: [Qemu-devel] [RFC] [PATCHv6 10/16] aio / timers: aio_ctx_prepare sets timeout from AioContext timers
Date: Tue, 6 Aug 2013 14:40:00 +0200
User-agent: Mutt/1.5.21 (2010-09-15)

On Tue, Aug 06, 2013 at 10:16:26AM +0100, Alex Bligh wrote:
> @@ -180,7 +189,7 @@ aio_ctx_check(GSource *source)
>              return true;
>       }
>      }
> -    return aio_pending(ctx);
> +    return aio_pending(ctx) || (timerlistgroup_deadline_ns(ctx->tlg) >= 0);

Now we always dispatch if there is a timer?  Should this comparison be
timerlistgroup_deadline_ns(ctx->tlg) == 0 instead to only dispatch
expired timers?

Stefan



reply via email to

[Prev in Thread] Current Thread [Next in Thread]