summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/mutex.cpp
diff options
context:
space:
mode:
authorGravatar Lioncash2018-07-23 22:54:32 -0400
committerGravatar Lioncash2018-07-23 22:54:35 -0400
commit42b5158c9661446984f1f60ed42d44651b6a28ad (patch)
treef35a2533162e08354c0caa3fbb5fc9d3dc8021aa /src/core/hle/kernel/mutex.cpp
parentMerge pull request #787 from bunnei/tlds (diff)
downloadyuzu-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/hle/kernel/mutex.cpp')
-rw-r--r--src/core/hle/kernel/mutex.cpp2
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.
21static std::pair<SharedPtr<Thread>, u32> GetHighestPriorityMutexWaitingThread( 21static 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;