Daniel P. Berrangé 695bdb3841 src: ensure GSource background unref happens in correct event loop
The g_idle_add function adds a callback to the primary GMainContext.

To workaround the GSource unref bugs, we need to add our callbacks
to the GMainContext that is associated with the GSource being
unref'd. Thus code using the per-VM virEventThread must use its
private GMainContext.

Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2021-03-17 09:16:05 +00:00
..
2021-02-03 16:09:25 +01:00
2021-02-03 16:09:25 +01:00
2021-03-02 09:50:19 +01:00
2020-10-06 12:31:34 +02:00
2021-03-02 09:50:19 +01:00
2020-08-03 15:30:40 +02:00
2021-03-01 15:54:42 +01:00
2021-01-25 20:27:38 -05:00
2021-03-02 09:50:19 +01:00
2021-03-12 10:57:42 +01:00
2021-03-12 10:57:42 +01:00
2020-10-06 12:31:34 +02:00
2021-03-02 09:50:19 +01:00
2020-12-04 16:24:19 +01:00
2020-12-04 16:24:19 +01:00