mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-21 14:35:46 +00:00
scheduler: Clear exclusive state when switching contexts
This commit is contained in:
parent
a9caafead6
commit
bd97579188
6 changed files with 11 additions and 0 deletions
|
@ -85,6 +85,7 @@ void Scheduler::SwitchContext(Thread* new_thread) {
|
|||
|
||||
cpu_core->LoadContext(new_thread->context);
|
||||
cpu_core->SetTlsAddress(new_thread->GetTLSAddress());
|
||||
cpu_core->ClearExclusiveState();
|
||||
} else {
|
||||
current_thread = nullptr;
|
||||
// Note: We do not reset the current process and current page table when idling because
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue