Lines Matching refs:pcb
52 pub fn enqueue(&mut self, pcb: &'static mut process_control_block) { in enqueue()
57 if pcb.pid == 0 { in enqueue()
61 self.queue.push_back(pcb); in enqueue()
80 pub fn enqueue_front(&mut self, pcb: &'static mut process_control_block) { in enqueue_front()
85 if pcb.pid == 0 { in enqueue_front()
89 self.queue.push_front(pcb); in enqueue_front()
161 pub fn enqueue_front(&mut self, pcb: &'static mut process_control_block) { in enqueue_front()
162 self.cpu_queue[pcb.cpu_id as usize][pcb.priority as usize].enqueue_front(pcb); in enqueue_front()
214 fn enqueue(&mut self, pcb: &'static mut process_control_block) { in enqueue()
215 let cpu_id = pcb.cpu_id; in enqueue()
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()