History | View | Annotate | Download (455 Bytes)
fix win32 build
On Windows, cpus.c needs access to the hThread. Add a Windows-specificfunction to grab it. This requires changing the CPU threads tojoinable. There is no substantial change because the threads runin an infinite loop.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>...
qemu-thread: implement joinable threads for Win32
Rewrite the handshaking between qemu_thread_create and thewin32_start_routine, so that the thread can be joined without races.Similar handshaking is done now between qemu_thread_exit andqemu_thread_join....
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.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>Signed-off-by: Blue Swirl <blauwirbel@gmail.com>