diff options
author | Zach Hilman <zachhilman@gmail.com> | 2018-12-02 06:44:40 +0100 |
---|---|---|
committer | Zach Hilman <zachhilman@gmail.com> | 2018-12-02 06:44:40 +0100 |
commit | 3476830b26b61410b633c827e985bffa1dc52528 (patch) | |
tree | cedba8440c12c3d8edeb78f33de5c56f2488b60f /src/core/hle/kernel/scheduler.cpp | |
parent | scheduler: Add explanations for YieldWith and WithoutLoadBalancing (diff) | |
download | yuzu-3476830b26b61410b633c827e985bffa1dc52528.tar yuzu-3476830b26b61410b633c827e985bffa1dc52528.tar.gz yuzu-3476830b26b61410b633c827e985bffa1dc52528.tar.bz2 yuzu-3476830b26b61410b633c827e985bffa1dc52528.tar.lz yuzu-3476830b26b61410b633c827e985bffa1dc52528.tar.xz yuzu-3476830b26b61410b633c827e985bffa1dc52528.tar.zst yuzu-3476830b26b61410b633c827e985bffa1dc52528.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/kernel/scheduler.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/hle/kernel/scheduler.cpp b/src/core/hle/kernel/scheduler.cpp index 624c841ad..efe3551e2 100644 --- a/src/core/hle/kernel/scheduler.cpp +++ b/src/core/hle/kernel/scheduler.cpp @@ -207,8 +207,8 @@ void Scheduler::YieldWithoutLoadBalancing(Thread* thread) { ASSERT(thread->GetPriority() < THREADPRIO_COUNT); // Yield this thread - MoveThreadToBackOfPriorityQueue(thread, thread->GetPriority()); Reschedule(); + MoveThreadToBackOfPriorityQueue(thread, thread->GetPriority()); } void Scheduler::YieldWithLoadBalancing(Thread* thread) { @@ -223,6 +223,7 @@ void Scheduler::YieldWithLoadBalancing(Thread* thread) { ASSERT(priority < THREADPRIO_COUNT); // Reschedule thread to end of queue. + Reschedule(); MoveThreadToBackOfPriorityQueue(thread, priority); Thread* suggested_thread = nullptr; |