summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2019-04-17 12:44:31 +0200
committerLioncash <mathew1800@gmail.com>2019-04-17 12:44:34 +0200
commit6b2bece81fbe05456f1a7f8f9d876ade1bcca259 (patch)
tree8758f072340ccc77bcfee374d35afa2f68374168 /src/core/hle/kernel
parentMerge pull request #2315 from ReinUsesLisp/severity-decompiler (diff)
downloadyuzu-6b2bece81fbe05456f1a7f8f9d876ade1bcca259.tar
yuzu-6b2bece81fbe05456f1a7f8f9d876ade1bcca259.tar.gz
yuzu-6b2bece81fbe05456f1a7f8f9d876ade1bcca259.tar.bz2
yuzu-6b2bece81fbe05456f1a7f8f9d876ade1bcca259.tar.lz
yuzu-6b2bece81fbe05456f1a7f8f9d876ade1bcca259.tar.xz
yuzu-6b2bece81fbe05456f1a7f8f9d876ade1bcca259.tar.zst
yuzu-6b2bece81fbe05456f1a7f8f9d876ade1bcca259.zip
Diffstat (limited to 'src/core/hle/kernel')
-rw-r--r--src/core/hle/kernel/wait_object.cpp2
-rw-r--r--src/core/hle/kernel/wait_object.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/kernel/wait_object.cpp b/src/core/hle/kernel/wait_object.cpp
index 90580ed93..c8eaf9488 100644
--- a/src/core/hle/kernel/wait_object.cpp
+++ b/src/core/hle/kernel/wait_object.cpp
@@ -30,7 +30,7 @@ void WaitObject::RemoveWaitingThread(Thread* thread) {
waiting_threads.erase(itr);
}
-SharedPtr<Thread> WaitObject::GetHighestPriorityReadyThread() {
+SharedPtr<Thread> WaitObject::GetHighestPriorityReadyThread() const {
Thread* candidate = nullptr;
u32 candidate_priority = THREADPRIO_LOWEST + 1;
diff --git a/src/core/hle/kernel/wait_object.h b/src/core/hle/kernel/wait_object.h
index 04464a51a..3271a30a7 100644
--- a/src/core/hle/kernel/wait_object.h
+++ b/src/core/hle/kernel/wait_object.h
@@ -54,7 +54,7 @@ public:
void WakeupWaitingThread(SharedPtr<Thread> thread);
/// Obtains the highest priority thread that is ready to run from this object's waiting list.
- SharedPtr<Thread> GetHighestPriorityReadyThread();
+ SharedPtr<Thread> GetHighestPriorityReadyThread() const;
/// Get a const reference to the waiting threads list for debug use
const std::vector<SharedPtr<Thread>>& GetWaitingThreads() const;