qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [RFC] [PATCHv6 09/16] aio / timers: Add a notify callba


From: Stefan Hajnoczi
Subject: Re: [Qemu-devel] [RFC] [PATCHv6 09/16] aio / timers: Add a notify callback to QEMUTimerList
Date: Tue, 6 Aug 2013 14:34:00 +0200
User-agent: Mutt/1.5.21 (2010-09-15)

On Tue, Aug 06, 2013 at 10:16:25AM +0100, Alex Bligh wrote:
> Add a notify pointer to QEMUTimerList so it knows what to notify
> on a timer change.
> 
> Signed-off-by: Alex Bligh <address@hidden>
> ---
>  async.c              |    7 ++++++-
>  include/qemu/timer.h |    7 ++++++-
>  qemu-timer.c         |   24 ++++++++++++++++++++++--
>  3 files changed, 34 insertions(+), 4 deletions(-)
> 
> diff --git a/async.c b/async.c
> index 99fb5a8..8daa232 100644
> --- a/async.c
> +++ b/async.c
> @@ -234,6 +234,11 @@ void aio_notify(AioContext *ctx)
>      event_notifier_set(&ctx->notifier);
>  }
>  
> +static void aio_timerlist_notify(void *opaque)
> +{
> +    aio_notify((AioContext *)opaque);

void * is automatically converted to any pointer type.  No need for an
explicit cast, a C compiler doesn't emit a warning here.



reply via email to

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