pub unsafe fn task_create(
name: &str,
task: extern "C" fn(*mut c_void),
param: *mut c_void,
priority: u32,
pin_to_core: Option<u32>,
task_stack_size: usize,
) -> *mut c_voidExpand description
Creates a new task with the given initial parameter and stack size.
ยงSafety
The param parameter must be valid for the lifetime of the task. The data
pointed to by param needs to be Send and the task takes ownership over it.