summaryrefslogtreecommitdiff
path: root/qemu-thread-win32.h
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2011-08-08 14:36:41 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2012-10-31 09:45:47 +0100
commit38b14db34e16bb0ae1f28b7ddccb6aa11a2a96a1 (patch)
tree13bfc5fc9a8c4f2a348a4ce61c57f1493f12c166 /qemu-thread-win32.h
parentc90caf25e2b6945ae13560476a5ecd7992e9f945 (diff)
downloadqemu-38b14db34e16bb0ae1f28b7ddccb6aa11a2a96a1.tar.gz
qemu-thread: add QemuSemaphore
The new thread pool will use semaphores instead of condition variables, because QemuCond does not have qemu_cond_timedwait. (I also like it more this way). Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'qemu-thread-win32.h')
-rw-r--r--qemu-thread-win32.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/qemu-thread-win32.h b/qemu-thread-win32.h
index b9d1be8478..13adb958f0 100644
--- a/qemu-thread-win32.h
+++ b/qemu-thread-win32.h
@@ -13,6 +13,10 @@ struct QemuCond {
HANDLE continue_event;
};
+struct QemuSemaphore {
+ HANDLE sema;
+};
+
typedef struct QemuThreadData QemuThreadData;
struct QemuThread {
QemuThreadData *data;