diff options
| author | 2018-07-24 04:45:34 -0700 | |
|---|---|---|
| committer | 2018-07-24 04:45:34 -0700 | |
| commit | d092ea0870c955424f043c03a7a5139251b853f0 (patch) | |
| tree | 240380e243e456a7f18f0c98ad988e55e8f2a2e6 /src/core/hle/kernel/mutex.cpp | |
| parent | Merge pull request #796 from bunnei/gl-uint (diff) | |
| parent | mutex: Pass SharedPtr to GetHighestPriorityMutexWaitingThread() by reference (diff) | |
| download | yuzu-d092ea0870c955424f043c03a7a5139251b853f0.tar.gz yuzu-d092ea0870c955424f043c03a7a5139251b853f0.tar.xz yuzu-d092ea0870c955424f043c03a7a5139251b853f0.zip | |
Merge pull request #794 from lioncash/ref
mutex: Pass SharedPtr to GetHighestPriorityMutexWaitingThread() by reference
Diffstat (limited to 'src/core/hle/kernel/mutex.cpp')
| -rw-r--r-- | src/core/hle/kernel/mutex.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/kernel/mutex.cpp b/src/core/hle/kernel/mutex.cpp index 3f1de3258..feb7b88d2 100644 --- a/src/core/hle/kernel/mutex.cpp +++ b/src/core/hle/kernel/mutex.cpp | |||
| @@ -19,7 +19,7 @@ namespace Kernel { | |||
| 19 | /// Returns the number of threads that are waiting for a mutex, and the highest priority one among | 19 | /// Returns the number of threads that are waiting for a mutex, and the highest priority one among |
| 20 | /// those. | 20 | /// those. |
| 21 | static std::pair<SharedPtr<Thread>, u32> GetHighestPriorityMutexWaitingThread( | 21 | static std::pair<SharedPtr<Thread>, u32> GetHighestPriorityMutexWaitingThread( |
| 22 | SharedPtr<Thread> current_thread, VAddr mutex_addr) { | 22 | const SharedPtr<Thread>& current_thread, VAddr mutex_addr) { |
| 23 | 23 | ||
| 24 | SharedPtr<Thread> highest_priority_thread; | 24 | SharedPtr<Thread> highest_priority_thread; |
| 25 | u32 num_waiters = 0; | 25 | u32 num_waiters = 0; |