summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/thread.cpp
diff options
context:
space:
mode:
authorGravatar Subv2018-04-20 14:45:52 -0500
committerGravatar Subv2018-04-20 21:04:33 -0500
commitbe155f4d9d410886853c25ffa032ce41a7428337 (patch)
tree0cdfd46181a5639339cbbf7d22ed31d9c1d8486b /src/core/hle/kernel/thread.cpp
parentKernel: Remove old and unused Mutex code. (diff)
downloadyuzu-be155f4d9d410886853c25ffa032ce41a7428337.tar.gz
yuzu-be155f4d9d410886853c25ffa032ce41a7428337.tar.xz
yuzu-be155f4d9d410886853c25ffa032ce41a7428337.zip
Kernel: Remove unused ConditionVariable class.
Diffstat (limited to 'src/core/hle/kernel/thread.cpp')
-rw-r--r--src/core/hle/kernel/thread.cpp9
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) {
329 nominal_priority = current_priority = priority; 329 nominal_priority = current_priority = priority;
330} 330}
331 331
332void Thread::UpdatePriority() {
333 u32 best_priority = nominal_priority;
334 for (auto& mutex : held_mutexes) {
335 if (mutex->priority < best_priority)
336 best_priority = mutex->priority;
337 }
338 BoostPriority(best_priority);
339}
340
341void Thread::BoostPriority(u32 priority) { 332void Thread::BoostPriority(u32 priority) {
342 Core::System::GetInstance().Scheduler().SetThreadPriority(this, priority); 333 Core::System::GetInstance().Scheduler().SetThreadPriority(this, priority);
343 current_priority = priority; 334 current_priority = priority;