Crate spawn

source ·
Expand description

This crate offers routines for spawning new tasks and convenient builder patterns for customizing new tasks.

The two functions of interest to create a TaskBuilder are:

Structs

  • A wrapper around a TaskRef for bootstrapped tasks, which are the tasks that represent the first thread of execution on each CPU when it first boots.
  • A struct that offers a builder pattern to create and customize new Tasks.

Functions

  • Spawns a dedicated task to cleanup all bootstrap tasks by reaping them, i.e., taking their exit value.
  • Initializes tasking for this CPU, including creating a runqueue for it and creating its initial task bootstrapped from the current execution context.
  • Creates a builder for a new application Task.
  • Creates a builder for a new Task that starts at the given entry point function func and will be passed the given argument.