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>
Showing
- qemu-thread-posix.c 80 additions, 0 deletionsqemu-thread-posix.c
- qemu-thread-posix.h 5 additions, 0 deletionsqemu-thread-posix.h
- qemu-thread-win32.c 35 additions, 0 deletionsqemu-thread-win32.c
- qemu-thread-win32.h 4 additions, 0 deletionsqemu-thread-win32.h
- qemu-thread.h 7 additions, 0 deletionsqemu-thread.h
Please register or sign in to comment