Hello, It seems that AIO use global default GMainContext by *g_main_context_default()*. I want to replace all default GMainContext into another GMainContext by *g_main_context_new()*, but I have no idea when and where to add *g_main_context_new()*.
It should be only created new GMainContext once, then others use this new GMainContext. But it's hard to create a global variable that will not cause redefine during make Is there any suggestion which data structure is suitable for adding a GMainContext? or is there any advice for replacing default GMainContext? The reason for replacing default GMainContext is that I simultaneously run two qemu, called A and B, in threads. However, these two QEMU using the same default GMainContext causes A QEMU to handle the event from B QEMU, and run B's handler instead of A's handler. I will be grateful for any help, thanks. Sincerely, Eva