pub struct TaskAttr<Traits: KernelCfg1, TaskPriority: 'static = <Traits as KernelCfg1>::TaskPriority> {
pub entry_point: unsafe extern "C" fn(_: ClosureEnv),
pub entry_param: ClosureEnv,
pub stack: StackHunk<Traits>,
pub priority: TaskPriority,
}
Expand description
The static properties of a task.
Fields§
§entry_point: unsafe extern "C" fn(_: ClosureEnv)
The entry point of the task.
Safety
This is only meant to be used by a kernel port, as a task entry point, not by user code. Using this in other ways may cause an undefined behavior.
entry_param: ClosureEnv
The parameter supplied for entry_point
.
stack: StackHunk<Traits>
The hunk representing the stack region for the task.
priority: TaskPriority
The initial base priority of the task.