mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2026-09-04 11:23:12 +00:00
Kernel Scheduler: Make sure the global scheduler shutdowns correctly.
This commit is contained in:
committed by
FernandoS27
parent
0d57b899dd
commit
17b53b4a54
@@ -147,6 +147,8 @@ public:
|
||||
return reselection_pending.load();
|
||||
}
|
||||
|
||||
void Shutdown();
|
||||
|
||||
private:
|
||||
bool AskForReselectionOrMarkRedundant(Thread* current_thread, Thread* winner);
|
||||
|
||||
@@ -189,6 +191,11 @@ public:
|
||||
return context_switch_pending;
|
||||
}
|
||||
|
||||
void Shutdown() {
|
||||
current_thread = nullptr;
|
||||
selected_thread = nullptr;
|
||||
}
|
||||
|
||||
private:
|
||||
friend class GlobalScheduler;
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user