On Tue, Oct 22, 2019 at 12:07:25PM +0100, Dr. David Alan Gilbert wrote: > * Marc-André Lureau (marcandre.lur...@gmail.com) wrote: > > On Mon, Oct 21, 2019 at 1:26 PM Dr. David Alan Gilbert (git) > > <dgilb...@redhat.com> wrote: > > > > > > From: "Dr. David Alan Gilbert" <dgilb...@redhat.com> > > > > > > Processes incoming requests on the vhost-user fd. > > > > Is there a reason to avoid using glib & its main loop? > > Not particularly; would it actually work out any easier? > Is there an easy way to get the glib loop to check something like > the fuse_session_exited at each iteration. > > I probably didn't originally because I wasn't sure if this code > was going back into libfuse or staying here; and libfuse doesn't > use glib.
I tried to convert this to glib a few months ago, but stopped because libvhost-user-glib.c is difficult to use from multiple threads. If I remember correctly we'd need to change it quite a bit to make multi-threaded vhost-user device backends possible and I gave up. Stefan
signature.asc
Description: PGP signature