Support thread-switch callback

This commit is contained in:
momo5502
2025-04-23 15:13:18 +02:00
parent c4e8aa47b4
commit 1beb95c2b2
3 changed files with 78 additions and 51 deletions

View File

@@ -34,6 +34,7 @@ struct process_context
{
utils::optional_function<void(handle h, emulator_thread& thr)> on_create_thread{};
utils::optional_function<void(handle h, emulator_thread& thr)> on_thread_terminated{};
utils::optional_function<void()> on_thread_switch{};
};
struct atom_entry

View File

@@ -169,6 +169,7 @@ namespace
}
thread.apc_alertable = false;
win_emu.callbacks.on_thread_switch();
return true;
}