pub fn create_process(&mut self,
                        parent: LTerm,
                        mfargs: &MFArgs,
                        prio: Prio) -> Hopefully<LTerm> {
    let pid_c = self.pid_counter;
    self.pid_counter += 1;

    let pid = LTerm::make_pid(pid_c);
    let mfarity = mfargs.get_mfarity();
    match Process::new(pid, parent, &mfarity, prio,
                       self.code_server.borrow_mut().as_mut()) {
      Ok(p0) => {
        self.scheduler.borrow_mut().add(pid, p0);
        Ok(pid)
      },
      Err(e) => Err(e)
    }
  }
/// Spawn a new process, create a new pid, register the process and jump to the MFA
Spawn a new process, create a new pid, register the process and jump to the MFA
Spawn a new process create a new pid register the process and jump to the MFA
pub fn create_process(&mut self,
                        parent: LTerm,
                        mfargs: &MFArgs,
                        prio: Prio) -> Hopefully<LTerm> {
    let pid_c = self.pid_counter;
    self.pid_counter += 1;
    let pid = LTerm::make_pid(pid_c);
    let mfarity = mfargs.get_mfarity();
    match Process::new(pid, parent, &mfarity, prio,
                       self.code_server.borrow_mut().as_mut()) {
      Ok(p0) => {
        self.scheduler.borrow_mut().add(pid, p0);
        Ok(pid)
      },
      Err(e) => Err(e)
    }
  }
pub fn create_process ( & mut self , parent : LTerm , mfargs : & MFArgs , prio : Prio ) -> Hopefully < LTerm > { let pid_c = self . pid_counter ; self . pid_counter += 1 ; let pid = LTerm :: make_pid ( pid_c ) ; let mfarity = mfargs . get_mfarity ( ) ; match Process :: new ( pid , parent , & mfarity , prio , self . code_server . borrow_mut ( ) . as_mut ( ) ) { Ok ( p0 ) => { self . scheduler . borrow_mut ( ) . add ( pid , p0 ) ; Ok ( pid ) } , Err ( e ) => Err ( e ) } }
Spawn a new process, create a new pid, register the process and jump to the MFA
Spawn a new process create a new pid register the process and jump to the MFA
&mut self
parent
LTerm
mfargs
&MFArgs
prio
Prio