summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/scheduler.h
diff options
context:
space:
mode:
authorGravatar Fernando Sahmkow2019-10-12 08:21:51 -0400
committerGravatar FernandoS272019-10-15 11:55:24 -0400
commit25f8606a6dab595eb7a92fce9be32e0489079964 (patch)
tree66ab40014264b8ef8567831ba438e29dd672b255 /src/core/hle/kernel/scheduler.h
parentKernel_Thread: Eliminate most global accessors. (diff)
downloadyuzu-25f8606a6dab595eb7a92fce9be32e0489079964.tar.gz
yuzu-25f8606a6dab595eb7a92fce9be32e0489079964.tar.xz
yuzu-25f8606a6dab595eb7a92fce9be32e0489079964.zip
Kernel Scheduler: Make sure the global scheduler shutdowns correctly.
Diffstat (limited to 'src/core/hle/kernel/scheduler.h')
-rw-r--r--src/core/hle/kernel/scheduler.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/hle/kernel/scheduler.h b/src/core/hle/kernel/scheduler.h
index 408e20c88..617553ae3 100644
--- a/src/core/hle/kernel/scheduler.h
+++ b/src/core/hle/kernel/scheduler.h
@@ -147,6 +147,8 @@ public:
147 return reselection_pending.load(); 147 return reselection_pending.load();
148 } 148 }
149 149
150 void Shutdown();
151
150private: 152private:
151 bool AskForReselectionOrMarkRedundant(Thread* current_thread, Thread* winner); 153 bool AskForReselectionOrMarkRedundant(Thread* current_thread, Thread* winner);
152 154
@@ -189,6 +191,11 @@ public:
189 return context_switch_pending; 191 return context_switch_pending;
190 } 192 }
191 193
194 void Shutdown() {
195 current_thread = nullptr;
196 selected_thread = nullptr;
197 }
198
192private: 199private:
193 friend class GlobalScheduler; 200 friend class GlobalScheduler;
194 /** 201 /**