aboutsummaryrefslogtreecommitdiff
path: root/qemu-thread-win32.c
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@siemens.com>2011-12-12 17:21:31 +0100
committerAnthony Liguori <aliguori@us.ibm.com>2011-12-12 17:06:22 -0600
commitcf218714791a78c91db34a4aa9e33348923ad659 (patch)
tree3ebd3e50d5360b505c3b89ff5659e428789e5367 /qemu-thread-win32.c
parentd396a657baec8c6b7aa0c888746e0e2f78303650 (diff)
qemu-thread: add API for joinable threads
Split from Jan's original qemu-thread-posix.c patch. No semantic change, just introduce the new API that POSIX and Win32 implementations will conform to. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'qemu-thread-win32.c')
-rw-r--r--qemu-thread-win32.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/qemu-thread-win32.c b/qemu-thread-win32.c
index db8e744729..ff80e84b48 100644
--- a/qemu-thread-win32.c
+++ b/qemu-thread-win32.c
@@ -243,10 +243,12 @@ static inline void qemu_thread_init(void)
void qemu_thread_create(QemuThread *thread,
void *(*start_routine)(void *),
- void *arg)
+ void *arg, int mode)
{
HANDLE hThread;
+ assert(mode == QEMU_THREAD_DETACHED);
+
struct QemuThreadData *data;
qemu_thread_init();
data = g_malloc(sizeof *data);