diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2024-01-28 17:57:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-28 17:57:53 +0100 |
commit | 077a50a547a6091178d73280ea9e156ac74a2ee8 (patch) | |
tree | 4ad08cbdb432224fb079f7260445e2d35dede7d9 /src/core/hle/kernel/k_thread.cpp | |
parent | Merge pull request #12823 from german77/set-audio (diff) | |
parent | kernel: clear pinned waiter list on unpin (diff) | |
download | yuzu-077a50a547a6091178d73280ea9e156ac74a2ee8.tar yuzu-077a50a547a6091178d73280ea9e156ac74a2ee8.tar.gz yuzu-077a50a547a6091178d73280ea9e156ac74a2ee8.tar.bz2 yuzu-077a50a547a6091178d73280ea9e156ac74a2ee8.tar.lz yuzu-077a50a547a6091178d73280ea9e156ac74a2ee8.tar.xz yuzu-077a50a547a6091178d73280ea9e156ac74a2ee8.tar.zst yuzu-077a50a547a6091178d73280ea9e156ac74a2ee8.zip |
Diffstat (limited to 'src/core/hle/kernel/k_thread.cpp')
-rw-r--r-- | src/core/hle/kernel/k_thread.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/hle/kernel/k_thread.cpp b/src/core/hle/kernel/k_thread.cpp index 7d3421929..8a360a839 100644 --- a/src/core/hle/kernel/k_thread.cpp +++ b/src/core/hle/kernel/k_thread.cpp @@ -543,7 +543,8 @@ void KThread::Unpin() { ASSERT(m_parent != nullptr); // Resume any threads that began waiting on us while we were pinned. - for (auto it = m_pinned_waiter_list.begin(); it != m_pinned_waiter_list.end(); ++it) { + for (auto it = m_pinned_waiter_list.begin(); it != m_pinned_waiter_list.end(); + it = m_pinned_waiter_list.erase(it)) { it->EndWait(ResultSuccess); } } |