summaryrefslogtreecommitdiff
path: root/qemu-thread-win32.c
diff options
context:
space:
mode:
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);