pub(super) fn add_thread(&self, thread: Arc<Thread>) -> ZxResult {
        let mut inner = self.inner.lock();
        if let Status::Exited(_) = inner.status {
            return Err(ZxError::BAD_STATE);
        }
        inner.threads.push(thread);
        Ok(())
    }
/// Add a thread to the process.
Add a thread to the process.
Add a thread to the process .
pub(super) fn add_thread(&self, thread: Arc<Thread>) -> ZxResult {
        let mut inner = self.inner.lock();
        if let Status::Exited(_) = inner.status {
            return Err(ZxError::BAD_STATE);
        }
        inner.threads.push(thread);
        Ok(())
    }
pub ( super ) fn add_thread ( & self , thread : Arc < Thread > ) -> ZxResult { let mut inner = self . inner . lock ( ) ; if let Status :: Exited ( _ ) = inner . status { return Err ( ZxError :: BAD_STATE ) ; } inner . threads . push ( thread ) ; Ok ( ( ) ) }
Add a thread to the process.
Add a thread to the process .
&self
thread
Arc<Thread>
&self
thread
Arc<Thread>