summaryrefslogtreecommitdiffstats
path: root/src/core/hle
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-07-24 13:45:34 +0200
committerGitHub <noreply@github.com>2018-07-24 13:45:34 +0200
commitd092ea0870c955424f043c03a7a5139251b853f0 (patch)
tree240380e243e456a7f18f0c98ad988e55e8f2a2e6 /src/core/hle
parentMerge pull request #796 from bunnei/gl-uint (diff)
parentmutex: Pass SharedPtr to GetHighestPriorityMutexWaitingThread() by reference (diff)
downloadyuzu-d092ea0870c955424f043c03a7a5139251b853f0.tar
yuzu-d092ea0870c955424f043c03a7a5139251b853f0.tar.gz
yuzu-d092ea0870c955424f043c03a7a5139251b853f0.tar.bz2
yuzu-d092ea0870c955424f043c03a7a5139251b853f0.tar.lz
yuzu-d092ea0870c955424f043c03a7a5139251b853f0.tar.xz
yuzu-d092ea0870c955424f043c03a7a5139251b853f0.tar.zst
yuzu-d092ea0870c955424f043c03a7a5139251b853f0.zip
Diffstat (limited to '')
-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 {
/// Returns the number of threads that are waiting for a mutex, and the highest priority one among
/// those.
static std::pair<SharedPtr<Thread>, u32> GetHighestPriorityMutexWaitingThread(
- SharedPtr<Thread> current_thread, VAddr mutex_addr) {
+ const SharedPtr<Thread>& current_thread, VAddr mutex_addr) {
SharedPtr<Thread> highest_priority_thread;
u32 num_waiters = 0;