diff options
| author | 2016-03-21 02:48:40 -0400 | |
|---|---|---|
| committer | 2016-03-21 02:57:12 -0400 | |
| commit | 6b7ebb3f82ae9674f2a4d66e870a53102b412003 (patch) | |
| tree | 6b6f018c35d6c8245a2944bca6f5d1209410490b /src/core/hle/kernel/thread.cpp | |
| parent | Merge pull request #1302 from Subv/save_fix (diff) | |
| download | yuzu-6b7ebb3f82ae9674f2a4d66e870a53102b412003.tar.gz yuzu-6b7ebb3f82ae9674f2a4d66e870a53102b412003.tar.xz yuzu-6b7ebb3f82ae9674f2a4d66e870a53102b412003.zip | |
hle: Get rid of global access to g_reschedule
This shouldn't be directly exposed if there's already a partial API that operates on it.
We can just provide the rest of that API.
Diffstat (limited to 'src/core/hle/kernel/thread.cpp')
| -rw-r--r-- | src/core/hle/kernel/thread.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/hle/kernel/thread.cpp b/src/core/hle/kernel/thread.cpp index bf32f653d..6dc95d0f1 100644 --- a/src/core/hle/kernel/thread.cpp +++ b/src/core/hle/kernel/thread.cpp | |||
| @@ -483,7 +483,8 @@ void Reschedule() { | |||
| 483 | 483 | ||
| 484 | Thread* cur = GetCurrentThread(); | 484 | Thread* cur = GetCurrentThread(); |
| 485 | Thread* next = PopNextReadyThread(); | 485 | Thread* next = PopNextReadyThread(); |
| 486 | HLE::g_reschedule = false; | 486 | |
| 487 | HLE::DoneRescheduling(); | ||
| 487 | 488 | ||
| 488 | // Don't bother switching to the same thread | 489 | // Don't bother switching to the same thread |
| 489 | if (next == cur) | 490 | if (next == cur) |