|
|
|
@ -68,9 +68,11 @@ void GlobalSchedulerContext::UnregisterDummyThreadForWakeup(KThread* thread) noe |
|
|
|
|
|
|
|
void GlobalSchedulerContext::WakeupWaitingDummyThreads() noexcept { |
|
|
|
ASSERT(this->IsLocked()); |
|
|
|
for (auto* thread : m_woken_dummy_threads) |
|
|
|
thread->DummyThreadEndWait(); |
|
|
|
m_woken_dummy_threads.clear(); |
|
|
|
if (m_woken_dummy_threads.size() > 0) { |
|
|
|
for (auto* thread : m_woken_dummy_threads) |
|
|
|
thread->DummyThreadEndWait(); |
|
|
|
m_woken_dummy_threads.clear(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} // namespace Kernel
|