pub fn queue(&mut self, pid: LTerm) {
    assert!(pid.is_local_pid());

    let prio = {
      // Lookup the pid
      let p = self.lookup_pid(pid).unwrap();
      assert_eq!(p.current_queue, Queue::None);
      p.prio
    };

    match prio {
      Prio::Normal => self.queue_normal.push_back(pid),
      Prio::Low => self.queue_low.push_back(pid),
      Prio::High => self.queue_high.push_back(pid),
    }
  }
/// Queue a process by its pid. Will `panic!` if the process doesn't exist
/// or is already queued.
Queue a process by its pid. Will `panic!` if the process doesn't exist
or is already queued.
Queue a process by its pid . Will ` panic! ` if the process doesn ' t exist or is already queued .
pub fn queue(&mut self, pid: LTerm) {
    assert!(pid.is_local_pid());
    let prio = {
      // Lookup the pid
      let p = self.lookup_pid(pid).unwrap();
      assert_eq!(p.current_queue, Queue::None);
      p.prio
    };
    match prio {
      Prio::Normal => self.queue_normal.push_back(pid),
      Prio::Low => self.queue_low.push_back(pid),
      Prio::High => self.queue_high.push_back(pid),
    }
  }
pub fn queue ( & mut self , pid : LTerm ) { assert ! ( pid is_local_pid ( ) ) ; let prio = { // Lookup the pid let p = self . lookup_pid ( pid ) . unwrap ( ) ; assert_eq ! ( p current_queue Queue None ) ; p . prio } ; match prio { Prio :: Normal => self . queue_normal . push_back ( pid ) , Prio :: Low => self . queue_low . push_back ( pid ) , Prio :: High => self . queue_high . push_back ( pid ) , } }
Queue a process by its pid.
Queue a process by its pid .
&mut self
pid
LTerm