|
From: | Paolo Bonzini |
Subject: | Re: [Qemu-devel] [PATCH 09/17] aio: prepare for introducing GSource-based dispatch |
Date: | Wed, 26 Sep 2012 08:48:29 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120911 Thunderbird/15.0.1 |
Il 26/09/2012 00:01, Anthony Liguori ha scritto: > > + revents = node->pfd.revents & node->pfd.events; > > + node->pfd.revents &= ~revents; > > This is interesting and I must admit I don't understand why it's > necessary. What case are you trying to handle? That's for the case where you got a write event for fd Y, but disabled the write handler from the handler of fd X (called before fd Y). But what the current code does is just eat the event, so I can do the same and set node->pfd.revents to 0. Paolo
[Prev in Thread] | Current Thread | [Next in Thread] |