summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Liam2024-01-27 22:53:09 -0500
committerGravatar Liam2024-01-27 22:53:49 -0500
commit6c4eb2733d8282b347e4ac5c2c2b278e36f48c5f (patch)
tree9c595375d9d207aec49c5700037911b691956c0f /src
parentMerge pull request #12824 from t895/multi-boot (diff)
downloadyuzu-6c4eb2733d8282b347e4ac5c2c2b278e36f48c5f.tar.gz
yuzu-6c4eb2733d8282b347e4ac5c2c2b278e36f48c5f.tar.xz
yuzu-6c4eb2733d8282b347e4ac5c2c2b278e36f48c5f.zip
kernel: clear pinned waiter list on unpin
Diffstat (limited to '')
-rw-r--r--src/core/hle/kernel/k_thread.cpp3
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() {
543 ASSERT(m_parent != nullptr); 543 ASSERT(m_parent != nullptr);
544 544
545 // Resume any threads that began waiting on us while we were pinned. 545 // Resume any threads that began waiting on us while we were pinned.
546 for (auto it = m_pinned_waiter_list.begin(); it != m_pinned_waiter_list.end(); ++it) { 546 for (auto it = m_pinned_waiter_list.begin(); it != m_pinned_waiter_list.end();
547 it = m_pinned_waiter_list.erase(it)) {
547 it->EndWait(ResultSuccess); 548 it->EndWait(ResultSuccess);
548 } 549 }
549} 550}