diff options
author | Subv <subv2112@gmail.com> | 2018-04-20 21:45:52 +0200 |
---|---|---|
committer | Subv <subv2112@gmail.com> | 2018-04-21 04:04:33 +0200 |
commit | be155f4d9d410886853c25ffa032ce41a7428337 (patch) | |
tree | 0cdfd46181a5639339cbbf7d22ed31d9c1d8486b /src/core/hle/kernel/thread.cpp | |
parent | Kernel: Remove old and unused Mutex code. (diff) | |
download | yuzu-be155f4d9d410886853c25ffa032ce41a7428337.tar yuzu-be155f4d9d410886853c25ffa032ce41a7428337.tar.gz yuzu-be155f4d9d410886853c25ffa032ce41a7428337.tar.bz2 yuzu-be155f4d9d410886853c25ffa032ce41a7428337.tar.lz yuzu-be155f4d9d410886853c25ffa032ce41a7428337.tar.xz yuzu-be155f4d9d410886853c25ffa032ce41a7428337.tar.zst yuzu-be155f4d9d410886853c25ffa032ce41a7428337.zip |
Diffstat (limited to 'src/core/hle/kernel/thread.cpp')
-rw-r--r-- | src/core/hle/kernel/thread.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/core/hle/kernel/thread.cpp b/src/core/hle/kernel/thread.cpp index 8093c4496..16d9b9e36 100644 --- a/src/core/hle/kernel/thread.cpp +++ b/src/core/hle/kernel/thread.cpp @@ -329,15 +329,6 @@ void Thread::SetPriority(u32 priority) { nominal_priority = current_priority = priority; } -void Thread::UpdatePriority() { - u32 best_priority = nominal_priority; - for (auto& mutex : held_mutexes) { - if (mutex->priority < best_priority) - best_priority = mutex->priority; - } - BoostPriority(best_priority); -} - void Thread::BoostPriority(u32 priority) { Core::System::GetInstance().Scheduler().SetThreadPriority(this, priority); current_priority = priority; |