pub fn create_with_ext(
        job: &Arc<Job>,
        name: &str,
        ext: impl Any + Send + Sync,
    ) -> ZxResult<Arc<Self>> {
        let proc = Arc::new(Process {
            base: KObjectBase::with_name(name),
            _counter: CountHelper::new(),
            job: job.clone(),
            policy: job.policy(),
            vmar: VmAddressRegion::new_root(),
            ext: Box::new(ext),
            exceptionate: Exceptionate::new(ExceptionChannelType::Process),
            debug_exceptionate: Exceptionate::new(ExceptionChannelType::Debugger),
            inner: Mutex::new(ProcessInner::default()),
        });
        job.add_process(proc.clone())?;
        Ok(proc)
    }
/// Create a new process with extension info.
Create a new process with extension info.
Create a new process with extension info .
pub fn create_with_ext(
        job: &Arc<Job>,
        name: &str,
        ext: impl Any + Send + Sync,
    ) -> ZxResult<Arc<Self>> {
        let proc = Arc::new(Process {
            base: KObjectBase::with_name(name),
            _counter: CountHelper::new(),
            job: job.clone(),
            policy: job.policy(),
            vmar: VmAddressRegion::new_root(),
            ext: Box::new(ext),
            exceptionate: Exceptionate::new(ExceptionChannelType::Process),
            debug_exceptionate: Exceptionate::new(ExceptionChannelType::Debugger),
            inner: Mutex::new(ProcessInner::default()),
        });
        job.add_process(proc.clone())?;
        Ok(proc)
    }
pub fn create_with_ext ( job : & Arc < Job > , name : & str , ext : impl Any + Send + Sync , ) -> ZxResult < Arc < Self > > { let proc = Arc :: new ( Process { base : KObjectBase :: with_name ( name ) , _counter : CountHelper :: new ( ) , job : job . clone ( ) , policy : job . policy ( ) , vmar : VmAddressRegion :: new_root ( ) , ext : Box :: new ( ext ) , exceptionate : Exceptionate :: new ( ExceptionChannelType :: Process ) , debug_exceptionate : Exceptionate :: new ( ExceptionChannelType :: Debugger ) , inner : Mutex :: new ( ProcessInner :: default ( ) ) , } ) ; job . add_process ( proc . clone ( ) ) ? ; Ok ( proc ) }
Create a new process with extension info.
Create a new process with extension info .
job
&Arc<Job>
name
&str
ext
impl Any + Send + Sync
job
&Arc<Job>
name
&str
ext
impl Any + Send + Sync