qemu-thread: add QemuSemaphore
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 8 Aug 2011 12:36:41 +0000 (14:36 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 31 Oct 2012 08:45:47 +0000 (09:45 +0100)
commit38b14db34e16bb0ae1f28b7ddccb6aa11a2a96a1
tree13bfc5fc9a8c4f2a348a4ce61c57f1493f12c166
parentc90caf25e2b6945ae13560476a5ecd7992e9f945
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>
qemu-thread-posix.c
qemu-thread-posix.h
qemu-thread-win32.c
qemu-thread-win32.h
qemu-thread.h