diff options
| author | Lioncash <mathew1800@gmail.com> | 2019-04-17 06:44:31 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2019-04-17 06:44:34 -0400 |
| commit | 6b2bece81fbe05456f1a7f8f9d876ade1bcca259 (patch) | |
| tree | 8758f072340ccc77bcfee374d35afa2f68374168 /src/core/hle/kernel/wait_object.h | |
| parent | 0cfbd3325b2f53449a58669b3911eab52084f86c (diff) | |
kernel/wait_object: Make GetHighestPriorityReadyThread() a const member function
This doesn't actually modify internal state of a wait object, so it can
be const qualified.
Diffstat (limited to 'src/core/hle/kernel/wait_object.h')
| -rw-r--r-- | src/core/hle/kernel/wait_object.h | 2 |
1 files changed, 1 insertions, 1 deletions
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; |
