[Zion] Immediately schedule enqueued threads if we are sleeping.

This commit is contained in:
Drew Galbraith 2023-11-02 22:28:08 -07:00
parent c63a54d6b1
commit 78624d5291
2 changed files with 8 additions and 12 deletions

View file

@ -18,9 +18,7 @@ class Scheduler {
Process& CurrentProcess() { return current_thread_->process(); }
glcr::RefPtr<Thread> CurrentThread() { return current_thread_; }
void Enqueue(const glcr::RefPtr<Thread>& thread) {
runnable_threads_.PushBack(thread);
}
void Enqueue(const glcr::RefPtr<Thread>& thread);
void Preempt();
void Yield();