Lines Matching refs:task
24 use crate::task::config::Action;
40 pub(crate) fn start_task(&mut self, uid: u64, task: TaskQosInfo) {
42 self.apps.insert_task(uid, task);
82 for (i, task) in self.apps.iter().enumerate().flat_map(|(i, app)| {
88 if task.action() != action {
92 qos_vec.push(QosDirection::new(task.uid(), task.task_id(), m1_speed));
94 qos_vec.push(QosDirection::new(task.uid(), task.task_id(), m2_speed));
110 // Each app will take turns taking one task to execute until the
118 let task = match tasks.get(i) {
119 Some(task) => {
121 task
126 if task.action() != action {
131 qos_vec.push(QosDirection::new(task.uid(), task.task_id(), m3_speed));
146 for task in self
153 if task.action() != action {
158 qos_vec.push(QosDirection::new(task.uid(), task.task_id(), m3_speed));