diff options
| author | 2019-10-12 08:21:51 -0400 | |
|---|---|---|
| committer | 2019-10-15 11:55:24 -0400 | |
| commit | 25f8606a6dab595eb7a92fce9be32e0489079964 (patch) | |
| tree | 66ab40014264b8ef8567831ba438e29dd672b255 /src/core/hle/kernel/scheduler.h | |
| parent | Kernel_Thread: Eliminate most global accessors. (diff) | |
| download | yuzu-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.h | 7 |
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 | |||
| 150 | private: | 152 | private: |
| 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 | |||
| 192 | private: | 199 | private: |
| 193 | friend class GlobalScheduler; | 200 | friend class GlobalScheduler; |
| 194 | /** | 201 | /** |