]> git.proxmox.com Git - mirror_qemu.git/blobdiff - include/sysemu/iothread.h
iothread: fix iothread_stop() race condition
[mirror_qemu.git] / include / sysemu / iothread.h
index 55de1715c797c32877d55d8d0c12565a3c7b0616..799614ffd272be4db4667d4f7dbc8f9f7e5ef116 100644 (file)
@@ -29,7 +29,8 @@ typedef struct {
     GOnce once;
     QemuMutex init_done_lock;
     QemuCond init_done_cond;    /* is thread initialization done? */
-    bool stopping;
+    bool stopping;              /* has iothread_stop() been called? */
+    bool running;               /* should iothread_run() continue? */
     int thread_id;
 
     /* AioContext poll parameters */