Fix Emulator::Stop race with IDM
Newly created threads' state could have not been flagged with exit.
This commit is contained in:
@@ -614,6 +614,12 @@ cpu_thread::cpu_thread(u32 id)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (Emu.IsStopped())
|
||||||
|
{
|
||||||
|
// For similar race as above
|
||||||
|
state += cpu_flag::exit;
|
||||||
|
}
|
||||||
|
|
||||||
g_threads_created++;
|
g_threads_created++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user