Better thread yield support

This commit is contained in:
momo5502
2024-11-09 17:50:23 +01:00
parent 71232d51ab
commit 8f5600bc7c
3 changed files with 11 additions and 9 deletions

View File

@@ -809,6 +809,12 @@ void windows_emulator::setup_process(const emulator_settings& settings)
switch_to_thread(*this, main_thread_id);
}
void windows_emulator::yield_thread()
{
this->switch_thread = true;
this->emu().stop();
}
void windows_emulator::perform_thread_switch()
{
this->switch_thread = false;