summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel
diff options
context:
space:
mode:
authorGravatar Lioncash2019-04-15 06:59:15 -0400
committerGravatar Lioncash2019-04-15 06:59:19 -0400
commite3566e6c1d7991944b0d17b511020e19cae402ac (patch)
tree9d4d4ed0c35d64839a31ce9974717fb308639687 /src/core/hle/kernel
parentMerge pull request #2378 from lioncash/ro (diff)
downloadyuzu-e3566e6c1d7991944b0d17b511020e19cae402ac.tar.gz
yuzu-e3566e6c1d7991944b0d17b511020e19cae402ac.tar.xz
yuzu-e3566e6c1d7991944b0d17b511020e19cae402ac.zip
kernel/thread: Remove BoostPriority()
This is a holdover from Citra that currently remains unused, so it can be removed from the Thread interface.
Diffstat (limited to 'src/core/hle/kernel')
-rw-r--r--src/core/hle/kernel/thread.cpp5
-rw-r--r--src/core/hle/kernel/thread.h6
2 files changed, 0 insertions, 11 deletions
diff --git a/src/core/hle/kernel/thread.cpp b/src/core/hle/kernel/thread.cpp
index 1b891f632..ca52267b2 100644
--- a/src/core/hle/kernel/thread.cpp
+++ b/src/core/hle/kernel/thread.cpp
@@ -220,11 +220,6 @@ void Thread::SetPriority(u32 priority) {
220 UpdatePriority(); 220 UpdatePriority();
221} 221}
222 222
223void Thread::BoostPriority(u32 priority) {
224 scheduler->SetThreadPriority(this, priority);
225 current_priority = priority;
226}
227
228void Thread::SetWaitSynchronizationResult(ResultCode result) { 223void Thread::SetWaitSynchronizationResult(ResultCode result) {
229 context.cpu_registers[0] = result.raw; 224 context.cpu_registers[0] = result.raw;
230} 225}
diff --git a/src/core/hle/kernel/thread.h b/src/core/hle/kernel/thread.h
index 83c83e45a..32026d7f0 100644
--- a/src/core/hle/kernel/thread.h
+++ b/src/core/hle/kernel/thread.h
@@ -136,12 +136,6 @@ public:
136 */ 136 */
137 void SetPriority(u32 priority); 137 void SetPriority(u32 priority);
138 138
139 /**
140 * Temporarily boosts the thread's priority until the next time it is scheduled
141 * @param priority The new priority
142 */
143 void BoostPriority(u32 priority);
144
145 /// Adds a thread to the list of threads that are waiting for a lock held by this thread. 139 /// Adds a thread to the list of threads that are waiting for a lock held by this thread.
146 void AddMutexWaiter(SharedPtr<Thread> thread); 140 void AddMutexWaiter(SharedPtr<Thread> thread);
147 141