diff options
author | bunnei <bunneidev@gmail.com> | 2019-04-20 01:12:02 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-20 01:12:02 +0200 |
commit | 62c2404d3c2dc6b7684036e3c2477827aae7142a (patch) | |
tree | cbd737e1fffd6a74d0c254afef1d6809f02555bb /src | |
parent | Merge pull request #2414 from lioncash/reorder (diff) | |
parent | kernel/wait_object: Make GetHighestPriorityReadyThread() a const member function (diff) | |
download | yuzu-62c2404d3c2dc6b7684036e3c2477827aae7142a.tar yuzu-62c2404d3c2dc6b7684036e3c2477827aae7142a.tar.gz yuzu-62c2404d3c2dc6b7684036e3c2477827aae7142a.tar.bz2 yuzu-62c2404d3c2dc6b7684036e3c2477827aae7142a.tar.lz yuzu-62c2404d3c2dc6b7684036e3c2477827aae7142a.tar.xz yuzu-62c2404d3c2dc6b7684036e3c2477827aae7142a.tar.zst yuzu-62c2404d3c2dc6b7684036e3c2477827aae7142a.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/core/hle/kernel/wait_object.cpp | 2 | ||||
-rw-r--r-- | src/core/hle/kernel/wait_object.h | 2 |
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; |