Don't preempt without good reason

This commit is contained in:
Ruihan Li
2024-10-31 10:00:19 +08:00
committed by Tate, Hongliang Tian
parent 19b13d88e2
commit 5233827160
6 changed files with 32 additions and 16 deletions

View File

@ -58,7 +58,8 @@ impl<T: CommonSchedInfo + Send + Sync> Scheduler<T> for FifoScheduler<T> {
}
rq.queue.push_back(runnable);
Some(target_cpu)
// All tasks are important. Do not preempt the current task without good reason.
None
}
fn local_rq_with(&self, f: &mut dyn FnMut(&dyn LocalRunQueue<T>)) {