[PATCH 07/10] qemu: exit thread synchronously in qemuDomainObjStopWorker

Nikolay Shirokovskiy nshirokovskiy at virtuozzo.com
Tue Jul 14 09:32:58 UTC 2020


The change won't hurt much current callers performance I guess and now we can
use the function when we need to be sure of synchronous thread exit as well.

Signed-off-by: Nikolay Shirokovskiy <nshirokovskiy at virtuozzo.com>
---
 src/qemu/qemu_domain.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/qemu/qemu_domain.c b/src/qemu/qemu_domain.c
index 2d9d822..18651d0 100644
--- a/src/qemu/qemu_domain.c
+++ b/src/qemu/qemu_domain.c
@@ -1571,6 +1571,7 @@ qemuDomainObjStopWorker(virDomainObjPtr dom)
     qemuDomainObjPrivatePtr priv = dom->privateData;
 
     if (priv->eventThread) {
+        virEventThreadClose(priv->eventThread);
         g_object_unref(priv->eventThread);
         priv->eventThread = NULL;
     }
-- 
1.8.3.1




More information about the libvir-list mailing list