Function axtask::new_task

source ·
pub fn new_task<F>(
    entry: F,
    name: String,
    stack_size: usize,
    process_id: u64,
    page_table_token: usize,
    sig_child: bool
) -> AxTaskRef
where F: FnOnce() + Send + 'static,
Available on crate feature multitask only.
Expand description

Create a new task.

Arguments

  • entry: The entry function of the task.
  • name: The name of the task.
  • stack_size: The size of the stack.
  • process_id: The process ID of the task.
  • page_table_token: The page table token of the task.
  • sig_child: Whether the task will send a signal to its parent when it exits.