Function create
pub fn create<T>(
func: fn(T),
arg: T,
stack: &'static mut [u8],
prio: u8,
core_affinity: Option<CoreAffinity>,
) -> ThreadIdAvailable on crate feature
threading only.Expand description
Low-level function to create a thread that runs
func with arg.
This sets up the stack for the thread and adds it to the runqueue.
ยงPanics
Panics if more than THREAD_COUNT concurrent threads have been created.