pub unsafe fn spawn(
name: *const c_char,
entry: extern "C" fn(*mut c_void) -> i32,
arg: *mut c_void,
) -> Result<ThreadPtr, Status>Expand description
Spawns a new kernel thread with default priority and resumes it.
ยงSafety
The caller must ensure that entry and arg are safe to run on a new thread,
and that the thread is joined before any borrowed data in arg is destroyed.