summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/mutex.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-10-06 07:38:34 +0200
committerGitHub <noreply@github.com>2018-10-06 07:38:34 +0200
commit095c8d999b27bcd412ab91da27c56d014d8ddeb9 (patch)
tree33f58620df6629bcdb848fe6659cbe5966073e91 /src/core/hle/kernel/mutex.cpp
parentMerge pull request #1440 from lioncash/array (diff)
parentkernel/mutex: Amend behavior of TransferMutexOwnership() (diff)
downloadyuzu-095c8d999b27bcd412ab91da27c56d014d8ddeb9.tar
yuzu-095c8d999b27bcd412ab91da27c56d014d8ddeb9.tar.gz
yuzu-095c8d999b27bcd412ab91da27c56d014d8ddeb9.tar.bz2
yuzu-095c8d999b27bcd412ab91da27c56d014d8ddeb9.tar.lz
yuzu-095c8d999b27bcd412ab91da27c56d014d8ddeb9.tar.xz
yuzu-095c8d999b27bcd412ab91da27c56d014d8ddeb9.tar.zst
yuzu-095c8d999b27bcd412ab91da27c56d014d8ddeb9.zip
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 78d8b74bb..dd541ffcc 100644
--- a/src/core/hle/kernel/mutex.cpp
+++ b/src/core/hle/kernel/mutex.cpp
@@ -47,7 +47,7 @@ static std::pair<SharedPtr<Thread>, u32> GetHighestPriorityMutexWaitingThread(
/// Update the mutex owner field of all threads waiting on the mutex to point to the new owner.
static void TransferMutexOwnership(VAddr mutex_addr, SharedPtr<Thread> current_thread,
SharedPtr<Thread> new_owner) {
- const auto& threads = current_thread->GetMutexWaitingThreads();
+ const auto threads = current_thread->GetMutexWaitingThreads();
for (const auto& thread : threads) {
if (thread->GetMutexWaitAddress() != mutex_addr)
continue;