Function task::bootstrap_task
source · pub fn bootstrap_task(
cpu_id: CpuId,
stack: NoDrop<Stack>,
kernel_mmi_ref: MmiRef
) -> Result<(JoinableTaskRef, ExitableTaskRef), &'static str>
Expand description
Bootstraps a new task from the current thread of execution.
Returns a tuple of:
- a
JoinableTaskRef
, which allows another task to join this bootstrapped task, - an
ExitableTaskRef
, which allows this bootstrapped task to mark itself as exited once it has completed running.
Note
This function does not add the new task to any runqueue.