Lines Matching refs:usize
92 pub fn get_rt_queue_size(&mut self) -> usize { in get_rt_queue_size() argument
120 result.cpu_queue[cpu_id as usize].push(Box::leak(Box::new(RTQueue::new()))); in new()
137 let cpu_queue_i: &mut RTQueue = self.cpu_queue[cpu_id as usize][i as usize]; in pick_next_task_rt()
147 pub fn rt_queue_len(&mut self, cpu_id: u32) -> usize { in rt_queue_len() argument
150 sum += self.cpu_queue[cpu_id as usize][prio as usize].get_rt_queue_size(); in rt_queue_len()
152 return sum as usize; in rt_queue_len()
157 pub fn load_list_len(&mut self, cpu_id: u32) -> usize { in load_list_len() argument
158 return self.load_list[cpu_id as usize].len(); in load_list_len()
162 self.cpu_queue[pcb.cpu_id as usize][pcb.priority as usize].enqueue_front(pcb); in enqueue_front()
208 self.cpu_queue[cpu_id as usize][proc.cpu_id as usize].enqueue_front(proc); in sched()
216 let cpu_queue = &mut self.cpu_queue[pcb.cpu_id as usize]; in enqueue()
217 cpu_queue[cpu_id as usize].enqueue(pcb); in enqueue()