Skip to main content

create

Function create 

Source
pub unsafe fn create(
    name: *const c_char,
    entry: extern "C" fn(*mut c_void) -> i32,
    arg: *mut c_void,
) -> Result<ThreadPtr, Status>
Expand description

Creates a new kernel thread with default priority.

ยงSafety

The caller must ensure that entry and arg are safe to run on a new thread.