mirror of
https://github.com/yuzu-mirror/yuzu.git
synced 2024-11-20 07:49:59 +00:00
kernel: clear pinned waiter list on unpin
This commit is contained in:
parent
d5e8c9d04f
commit
6c4eb2733d
1 changed files with 2 additions and 1 deletions
|
@ -543,7 +543,8 @@ void KThread::Unpin() {
|
||||||
ASSERT(m_parent != nullptr);
|
ASSERT(m_parent != nullptr);
|
||||||
|
|
||||||
// Resume any threads that began waiting on us while we were pinned.
|
// 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);
|
it->EndWait(ResultSuccess);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue