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. >