mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-01-11 00:35:46 +00:00
win32_start_routine() looks broken. TODO
This commit is contained in:
parent
ee294eebb0
commit
6daa8581cd
|
@ -49,11 +49,13 @@ static unsigned __stdcall win32_start_routine(void *arg)
|
||||||
void *(*start_routine)(void *) = data->start_routine;
|
void *(*start_routine)(void *) = data->start_routine;
|
||||||
void *thread_arg = data->arg;
|
void *thread_arg = data->arg;
|
||||||
|
|
||||||
|
#if 0
|
||||||
if (data->mode == QEMU_THREAD_DETACHED) {
|
if (data->mode == QEMU_THREAD_DETACHED) {
|
||||||
data->uc->qemu_thread_data = NULL;
|
data->uc->qemu_thread_data = NULL;
|
||||||
g_free(data);
|
g_free(data);
|
||||||
data = NULL;
|
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
qemu_thread_exit(data->uc, start_routine(thread_arg));
|
qemu_thread_exit(data->uc, start_routine(thread_arg));
|
||||||
abort();
|
abort();
|
||||||
}
|
}
|
||||||
|
@ -99,7 +101,7 @@ void *qemu_thread_join(QemuThread *thread)
|
||||||
DeleteCriticalSection(&data->cs);
|
DeleteCriticalSection(&data->cs);
|
||||||
data->uc->qemu_thread_data = NULL;
|
data->uc->qemu_thread_data = NULL;
|
||||||
g_free(data);
|
g_free(data);
|
||||||
data = NULL;
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue