diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2011-08-08 14:36:41 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2012-10-31 09:45:47 +0100 |
commit | 38b14db34e16bb0ae1f28b7ddccb6aa11a2a96a1 (patch) | |
tree | 13bfc5fc9a8c4f2a348a4ce61c57f1493f12c166 /qemu-thread-win32.h | |
parent | c90caf25e2b6945ae13560476a5ecd7992e9f945 (diff) |
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.h | 4 |
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; |