qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH v5] QEMUBH: make AioContext's bh re-entrant


From: Stefan Hajnoczi
Subject: Re: [Qemu-devel] [PATCH v5] QEMUBH: make AioContext's bh re-entrant
Date: Mon, 15 Jul 2013 17:28:09 +0800
User-agent: Mutt/1.5.21 (2010-09-15)

On Sun, Jul 07, 2013 at 06:00:17PM +0800, Liu Ping Fan wrote:
> @@ -211,6 +238,7 @@ AioContext *aio_context_new(void)
>      ctx = (AioContext *) g_source_new(&aio_source_funcs, sizeof(AioContext));
>      ctx->pollfds = g_array_new(FALSE, FALSE, sizeof(GPollFD));
>      ctx->thread_pool = NULL;
> +    qemu_mutex_init(&ctx->bh_lock);
>      event_notifier_init(&ctx->notifier, false);
>      aio_set_event_notifier(ctx, &ctx->notifier, 
>                             (EventNotifierHandler *)

The mutex should be destroyed in aio_ctx_finalize().




reply via email to

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