wait for the timer thread to finish at the end of uc_emu_start(). this may fix the issue #78
This commit is contained in:
parent
9b84beaf25
commit
b4d7347fa8
5
uc.c
5
uc.c
|
@ -549,6 +549,11 @@ uc_err uc_emu_start(uch handle, uint64_t begin, uint64_t until, uint64_t timeout
|
||||||
// emulation is done
|
// emulation is done
|
||||||
uc->emulation_done = true;
|
uc->emulation_done = true;
|
||||||
|
|
||||||
|
if (timeout) {
|
||||||
|
// wait for the timer to finish
|
||||||
|
qemu_thread_join(&uc->timer);
|
||||||
|
}
|
||||||
|
|
||||||
return uc->invalid_error;
|
return uc->invalid_error;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue