History | View | Annotate | Download (447 Bytes)
semaphore: implement fallback counting semaphores with mutex+condvar
OpenBSD and Darwin do not have sem_timedwait. Implement a fallbackfor them.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
qemu-thread: add QemuSemaphore
The new thread pool will use semaphores instead of conditionvariables, because QemuCond does not have qemu_cond_timedwait.(I also like it more this way).
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
add Win32 IPI service
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
add win32 qemu-thread implementation
For now, qemu_cond_timedwait and qemu_mutex_timedlock are left asPOSIX-only functions. They can be removed later, once the patchesthat remove their uses are in.