[Zion] Immediately schedule enqueued threads if we are sleeping.
This commit is contained in:
parent
c63a54d6b1
commit
78624d5291
2 changed files with 8 additions and 12 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue