]> git.proxmox.com Git - mirror_qemu.git/commit - util/qemu-thread-win32.c
qemu-thread: implement joinable threads for Win32
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 12 Dec 2011 16:21:33 +0000 (17:21 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 12 Dec 2011 23:06:22 +0000 (17:06 -0600)
commit403e633126b7a781ecd48a29e3355770d46bbf1a
tree859ac9f293512c6c889c814c600a67bacb3bb7b5
parent8763046b4b27f59ce0b639dbca896a01bf7b1388
qemu-thread: implement joinable threads for Win32

Rewrite the handshaking between qemu_thread_create and the
win32_start_routine, so that the thread can be joined without races.
Similar handshaking is done now between qemu_thread_exit and
qemu_thread_join.

This also simplifies how QemuThreads are initialized.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
qemu-thread-win32.c
qemu-thread-win32.h