mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-11 02:07:59 -05:00
Kernel Scheduler: Make sure the global scheduler shutdowns correctly.
This commit is contained in:
committed by
FernandoS27
parent
b3c1deba49
commit
25f8606a6d
@ -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