riot_wrappers::thread::riot_c::creation

Function spawn

Source
pub fn spawn<R>(
    stack: &'static mut [u8],
    closure: &'static mut R,
    name: &'static CStr,
    priority: u8,
    flags: i32,
) -> Result<TrackedThread, kernel_pid_t>
where R: Send + FnMut(),
Expand description

Create a thread with a statically allocated stack