mirror of
https://github.com/Vita3K/unicorn.git
synced 2024-11-27 15:20:42 +00:00
qemu_thread_join() takes only 1 arg
This commit is contained in:
parent
3a742fb6f6
commit
72ba554738
@ -431,7 +431,7 @@ void qemu_thread_exit(struct uc_struct *uc, void *retval)
|
||||
pthread_exit(retval);
|
||||
}
|
||||
|
||||
void *qemu_thread_join(struct uc_struct *uc, QemuThread *thread)
|
||||
void *qemu_thread_join(QemuThread *thread)
|
||||
{
|
||||
int err;
|
||||
void *ret;
|
||||
|
@ -298,7 +298,7 @@ void qemu_thread_exit(struct uc_struct *uc, void *arg)
|
||||
_endthreadex(0);
|
||||
}
|
||||
|
||||
void *qemu_thread_join(struct uc_struct *uc, QemuThread *thread)
|
||||
void *qemu_thread_join(QemuThread *thread)
|
||||
{
|
||||
QemuThreadData *data;
|
||||
void *ret;
|
||||
@ -323,7 +323,6 @@ void *qemu_thread_join(struct uc_struct *uc, QemuThread *thread)
|
||||
ret = data->ret;
|
||||
assert(data->mode != QEMU_THREAD_DETACHED);
|
||||
DeleteCriticalSection(&data->cs);
|
||||
uc->qemu_thread_data = NULL;
|
||||
g_free(data);
|
||||
return ret;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user