|
From: | Paolo Bonzini |
Subject: | Re: [Qemu-devel] [PATCH 11/17] aio: make AioContexts GSources |
Date: | Wed, 26 Sep 2012 08:40:01 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120911 Thunderbird/15.0.1 |
Il 26/09/2012 00:06, Anthony Liguori ha scritto: >> > if (node) { >> > + g_source_remove_poll(&ctx->source, &node->pfd); >> > + > Why remove vs. setting events = 0? Because otherwise you'd get a dangling pointer to node->pfd. :) Paolo > add_poll/remove_poll also comes with an event loop notify which I don't > think is strictly necessary here. >
[Prev in Thread] | Current Thread | [Next in Thread] |