diff options
| author | 2018-10-06 01:38:34 -0400 | |
|---|---|---|
| committer | 2018-10-06 01:38:34 -0400 | |
| commit | 095c8d999b27bcd412ab91da27c56d014d8ddeb9 (patch) | |
| tree | 33f58620df6629bcdb848fe6659cbe5966073e91 | |
| parent | Merge pull request #1440 from lioncash/array (diff) | |
| parent | kernel/mutex: Amend behavior of TransferMutexOwnership() (diff) | |
| download | yuzu-095c8d999b27bcd412ab91da27c56d014d8ddeb9.tar.gz yuzu-095c8d999b27bcd412ab91da27c56d014d8ddeb9.tar.xz yuzu-095c8d999b27bcd412ab91da27c56d014d8ddeb9.zip | |
Merge pull request #1447 from lioncash/mutex
kernel/mutex: Amend behavior of TransferMutexOwnership()
Diffstat (limited to '')
| -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 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( | |||
| 47 | /// Update the mutex owner field of all threads waiting on the mutex to point to the new owner. | 47 | /// Update the mutex owner field of all threads waiting on the mutex to point to the new owner. |
| 48 | static void TransferMutexOwnership(VAddr mutex_addr, SharedPtr<Thread> current_thread, | 48 | static void TransferMutexOwnership(VAddr mutex_addr, SharedPtr<Thread> current_thread, |
| 49 | SharedPtr<Thread> new_owner) { | 49 | SharedPtr<Thread> new_owner) { |
| 50 | const auto& threads = current_thread->GetMutexWaitingThreads(); | 50 | const auto threads = current_thread->GetMutexWaitingThreads(); |
| 51 | for (const auto& thread : threads) { | 51 | for (const auto& thread : threads) { |
| 52 | if (thread->GetMutexWaitAddress() != mutex_addr) | 52 | if (thread->GetMutexWaitAddress() != mutex_addr) |
| 53 | continue; | 53 | continue; |