From cf218714791a78c91db34a4aa9e33348923ad659 Mon Sep 17 00:00:00 2001 From: Jan Kiszka Date: Mon, 12 Dec 2011 17:21:31 +0100 Subject: 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 Signed-off-by: Paolo Bonzini Signed-off-by: Anthony Liguori --- qemu-thread-win32.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'qemu-thread-win32.c') 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); -- cgit v1.2.3