mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2026-01-14 11:47:55 +00:00
basic-event-loop: Document why code does not use default GLib context
Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Christophe Fergeau <cfergeau@redhat.com>
This commit is contained in:
parent
7a25e46c8b
commit
3625f3cfd1
@ -130,6 +130,9 @@ SpiceCoreInterface *basic_event_loop_init(void)
|
||||
{
|
||||
ignore_sigpipe();
|
||||
spice_assert(main_context == NULL);
|
||||
/* Qemu can use a context which is not the default one so to make
|
||||
* sure we can handle this condition here we emulate it so don't
|
||||
* use g_main_context_default */
|
||||
main_context = g_main_context_new();
|
||||
base_core_interface = event_loop_core;
|
||||
base_core_interface.main_context = main_context;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user