Re: [PATCH] util: avoid race in releasing the GSource in event thread

2020-07-30 Thread Michal Privoznik
On 7/29/20 6:56 PM, Daniel P. Berrangé wrote: There is a race between vir_event_thread_finalize and virEventThreadWorker in releasing the last reference on the GMainContext. If virEventThreadDataFree() runs after vir_event_thread_finalize releases its reference, then it will release the last ref

[PATCH] util: avoid race in releasing the GSource in event thread

2020-07-29 Thread Daniel P . Berrangé
There is a race between vir_event_thread_finalize and virEventThreadWorker in releasing the last reference on the GMainContext. If virEventThreadDataFree() runs after vir_event_thread_finalize releases its reference, then it will release the last reference on the GMainContext. As a result g_autopt