summary refs log tree commit diff stats
path: root/include/qemu/thread-win32.h
diff options
context:
space:
mode:
authorAkihiko Odaki <akihiko.odaki@daynix.com>2025-05-26 14:29:13 +0900
committerPaolo Bonzini <pbonzini@redhat.com>2025-06-06 14:32:55 +0200
commit69e10db83ea69cae74b59d27d87cfc61d9dd2b51 (patch)
treebbe6a589aa31eae7540f556c8665593f608494d2 /include/qemu/thread-win32.h
parentd1895f4c17fdeee35a9b86099bb64d4ed3333658 (diff)
downloadfocaccia-qemu-69e10db83ea69cae74b59d27d87cfc61d9dd2b51.tar.gz
focaccia-qemu-69e10db83ea69cae74b59d27d87cfc61d9dd2b51.zip
qemu-thread: Use futex for QemuEvent on Windows
Use the futex-based implementation of QemuEvent on Windows to
remove code duplication and remove the overhead of event object
construction and destruction.

Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Link: https://lore.kernel.org/r/20250526-event-v4-6-5b784cc8e1de@daynix.com
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/qemu/thread-win32.h')
-rw-r--r--include/qemu/thread-win32.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/include/qemu/thread-win32.h b/include/qemu/thread-win32.h
index d95af4498f..da9e732299 100644
--- a/include/qemu/thread-win32.h
+++ b/include/qemu/thread-win32.h
@@ -28,12 +28,6 @@ struct QemuSemaphore {
     bool initialized;
 };
 
-struct QemuEvent {
-    int value;
-    HANDLE event;
-    bool initialized;
-};
-
 typedef struct QemuThreadData QemuThreadData;
 struct QemuThread {
     QemuThreadData *data;