diff options
| author | 2018-07-23 22:54:32 -0400 | |
|---|---|---|
| committer | 2018-07-23 22:54:35 -0400 | |
| commit | 42b5158c9661446984f1f60ed42d44651b6a28ad (patch) | |
| tree | f35a2533162e08354c0caa3fbb5fc9d3dc8021aa /src/core | |
| parent | Merge pull request #787 from bunnei/tlds (diff) | |
| download | yuzu-42b5158c9661446984f1f60ed42d44651b6a28ad.tar.gz yuzu-42b5158c9661446984f1f60ed42d44651b6a28ad.tar.xz yuzu-42b5158c9661446984f1f60ed42d44651b6a28ad.zip | |
mutex: Pass SharedPtr to GetHighestPriorityMutexWaitingThread() by reference
The pointed to thread's members are simply observed in this case, so we
don't need to copy it here.
Diffstat (limited to 'src/core')
| -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; |