[libvirt PATCH v2 34/56] rpc: convert RPC client to use GMainLoop instead of poll

Pavel Hrdina phrdina at redhat.com
Wed Feb 5 17:27:58 UTC 2020


On Wed, Feb 05, 2020 at 05:18:03PM +0000, Daniel P. Berrangé wrote:
> On Thu, Jan 30, 2020 at 03:51:05PM +0100, Pavel Hrdina wrote:
> > On Tue, Jan 28, 2020 at 01:11:15PM +0000, Daniel P. Berrangé wrote:
> > > To eliminate the dependancy on GNULIB's poll impl, we need
> > > to change the RPC client code to use GMainLoop. We don't
> > > really want to use GIOChannel, but it provides the most
> > > convenient way to do socket event watches with Windows
> > > portability. The other alternative would be to use GSocket
> > > but that is a much more complex change affecting libvirt
> > > more broadly.
> > > 
> > > Signed-off-by: Daniel P. Berrangé <berrange at redhat.com>
> > > ---
> > >  src/rpc/virnetclient.c | 215 ++++++++++++++++++++++-------------------
> > >  1 file changed, 113 insertions(+), 102 deletions(-)
> > > 
> > > diff --git a/src/rpc/virnetclient.c b/src/rpc/virnetclient.c
> > > index 031a99711f..9069c57113 100644
> > > --- a/src/rpc/virnetclient.c
> > > +++ b/src/rpc/virnetclient.c
> > > @@ -800,11 +791,7 @@ static void virNetClientCloseInternal(virNetClientPtr client,
> > >       * queue and close the client because we set client->wantClose.
> > >       */
> > 
> > This comment should be probably updated to not reference threads.
> 
> I'm not sure what you mean here, as the comment looks still
> accurate to me.

After reading it again you are correct, there is nothing wrong with it.
Well feel free to disregard it.

Pavel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20200205/b1895ca8/attachment-0001.sig>


More information about the libvir-list mailing list