]> git.ipfire.org Git - thirdparty/qemu.git/commit
qemu-thread: Use futex for QemuEvent on Windows
authorAkihiko Odaki <akihiko.odaki@daynix.com>
Mon, 26 May 2025 05:29:13 +0000 (14:29 +0900)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 6 Jun 2025 12:32:55 +0000 (14:32 +0200)
commit69e10db83ea69cae74b59d27d87cfc61d9dd2b51
treebbe6a589aa31eae7540f556c8665593f608494d2
parentd1895f4c17fdeee35a9b86099bb64d4ed3333658
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>
include/qemu/thread-posix.h
include/qemu/thread-win32.h
include/qemu/thread.h
util/event.c [new file with mode: 0644]
util/meson.build
util/qemu-thread-posix.c
util/qemu-thread-win32.c