pub fn sys_thread_start(
        &self,
        handle_value: HandleValue,
        entry: usize,
        stack: usize,
        arg1: usize,
        arg2: usize,
    ) -> ZxResult {
        info!(
            "thread.start: handle={:#x?}, entry={:#x}, stack={:#x}, arg1={:#x} arg2={:#x}",
            handle_value, entry, stack, arg1, arg2
        );
        let proc = self.thread.proc();
        let thread = proc.get_object_with_rights::<Thread>(handle_value, Rights::MANAGE_THREAD)?;
        if thread.proc().status() != Status::Running {
            return Err(ZxError::BAD_STATE);
        }
        thread.start(entry, stack, arg1, arg2, self.thread_fn)?;
        Ok(())
    }
/// Start execution on a thread.
Start execution on a thread.
Start execution on a thread .
pub fn sys_thread_start(
        &self,
        handle_value: HandleValue,
        entry: usize,
        stack: usize,
        arg1: usize,
        arg2: usize,
    ) -> ZxResult {
        info!(
            "thread.start: handle={:#x?}, entry={:#x}, stack={:#x}, arg1={:#x} arg2={:#x}",
            handle_value, entry, stack, arg1, arg2
        );
        let proc = self.thread.proc();
        let thread = proc.get_object_with_rights::<Thread>(handle_value, Rights::MANAGE_THREAD)?;
        if thread.proc().status() != Status::Running {
            return Err(ZxError::BAD_STATE);
        }
        thread.start(entry, stack, arg1, arg2, self.thread_fn)?;
        Ok(())
    }
pub fn sys_thread_start ( & self , handle_value : HandleValue , entry : usize , stack : usize , arg1 : usize , arg2 : usize , ) -> ZxResult { info ! ( " " handle_value entry stack arg1 arg2 ) ; let proc = self . thread . proc ( ) ; let thread = proc . get_object_with_rights :: < Thread > ( handle_value , Rights :: MANAGE_THREAD ) ? ; if thread . proc ( ) . status ( ) != Status :: Running { return Err ( ZxError :: BAD_STATE ) ; } thread . start ( entry , stack , arg1 , arg2 , self . thread_fn ) ? ; Ok ( ( ) ) }
Start execution on a thread.
Start execution on a thread .
&self
handle_value
HandleValue
entry
usize
stack
usize
arg1
usize
arg2
usize
&self
handle_value
HandleValue
entry
usize
stack
usize
arg1
usize
arg2
usize