diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2011-12-13 13:43:52 +0100 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2011-12-15 09:20:50 -0600 |
commit | 1ecf47bf0a091700e45f1b7d1f5ad85abc0acd22 (patch) | |
tree | 879b0b0ebaba1097b246fe60f590fa8028d12bea /qemu-thread-win32.h | |
parent | cd34d667d448bec91c81f4e46f9e7eb4e4857f6f (diff) |
fix win32 build
On Windows, cpus.c needs access to the hThread. Add a Windows-specific
function to grab it. This requires changing the CPU threads to
joinable. There is no substantial change because the threads run
in an infinite loop.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'qemu-thread-win32.h')
-rw-r--r-- | qemu-thread-win32.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/qemu-thread-win32.h b/qemu-thread-win32.h index 2983490a58..b9d1be8478 100644 --- a/qemu-thread-win32.h +++ b/qemu-thread-win32.h @@ -19,4 +19,7 @@ struct QemuThread { unsigned tid; }; +/* Only valid for joinable threads. */ +HANDLE qemu_thread_get_handle(QemuThread *thread); + #endif |