kern: minor behavioral fixes to condvar/address arbiter

This commit is contained in:
Michael Scire committed 2020-10-12 01:06:19 -07:00
1 parent c547c7f0e7
commit 388f9e6455
2 files changed
+50 -26

No files matched your search

@@ -205,13 +205,8 @@ namespace ams::kern {
}
/* Close threads in the list. */
if (num_waiters > MaxThreads) {
auto it = thread_list.begin();
while (it != thread_list.end()) {
KThread *thread = std::addressof(*it);
thread->Close();
it = thread_list.erase(it);
}
for (auto it = thread_list.begin(); it != thread_list.end(); it = thread_list.erase(it)) {
(*it).Close();
}
}