mirror_qemu/contrib/libvhost-user
Johannes Berg a00fdc9c9d libvhost-user-glib: use g_main_context_get_thread_default()
If we use NULL, we just get the main program default mainloop
here. Using g_main_context_get_thread_default() has basically
the same effect, but it lets us start different devices in
different threads with different mainloops, which can be useful.

Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Message-Id: <20200123081708.7817-4-johannes@sipsolutions.net>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
2020-02-27 03:46:10 -05:00
..
Makefile.objs libvhost-user: add glib source helper 2017-10-10 23:31:09 +02:00
libvhost-user-glib.c libvhost-user-glib: use g_main_context_get_thread_default() 2020-02-27 03:46:10 -05:00
libvhost-user-glib.h libvhost-user-glib: fix VugDev main fd cleanup 2020-02-27 03:46:10 -05:00
libvhost-user.c libvhost-user: implement VHOST_USER_PROTOCOL_F_REPLY_ACK 2020-02-27 03:46:10 -05:00
libvhost-user.h libvhost-user: Fix some memtable remap cases 2020-01-23 16:41:37 +00:00