pub fn create_zircon_thread(
    parent: &Task,
) -> Result<(zx::Thread, Arc<ThreadGroup>, Arc<MemoryManager>), Errno> {
    let thread = parent
        .thread_group
        .process
        .create_thread(parent.command.read().as_bytes())
        .map_err(|status| from_status_like_fdio!(status))?;

    let thread_group = parent.thread_group.clone();
    let mm = parent.mm.clone();
    Ok((thread, thread_group, mm))
}
/// Creates a thread for a task with the given `parent`.
///
/// The `parent` is used to determine which process to create the thread in.
///
/// Returns the created thread, the thread group to which it belongs, and a memory manager to use
/// for the created thread.
Creates a thread for a task with the given `parent`.
The `parent` is used to determine which process to create the thread in.

Returns the created thread, the thread group to which it belongs, and a memory manager to use
for the created thread.
Creates a thread for a task with the given ` parent ` . The ` parent ` is used to determine which process to create the thread in . Returns the created thread the thread group to which it belongs and a memory manager to use for the created thread .
pub fn create_zircon_thread(
    parent: &Task,
) -> Result<(zx::Thread, Arc<ThreadGroup>, Arc<MemoryManager>), Errno> {
    let thread = parent
        .thread_group
        .process
        .create_thread(parent.command.read().as_bytes())
        .map_err(|status| from_status_like_fdio!(status))?;
    let thread_group = parent.thread_group.clone();
    let mm = parent.mm.clone();
    Ok((thread, thread_group, mm))
}
pub fn create_zircon_thread ( parent : & Task , ) -> Result < ( zx :: Thread , Arc < ThreadGroup > , Arc < MemoryManager > ) , Errno > { let thread = parent . thread_group . process . create_thread ( parent . command . read ( ) . as_bytes ( ) ) . map_err ( | status | from_status_like_fdio ! ( status ) ) ? ; let thread_group = parent . thread_group . clone ( ) ; let mm = parent . mm . clone ( ) ; Ok ( ( thread , thread_group , mm ) ) }
Creates a thread for a task with the given `parent`.
Creates a thread for a task with the given ` parent ` .
parent
&Task
parent
&Task