[][src]Function sunrise_libuser::syscalls::create_thread

pub unsafe fn create_thread(
    ip: extern "fastcall" fn(_: usize) -> !,
    arg: usize,
    sp: *const u8,
    priority: u32,
    processor_id: u32
) -> Result<Thread, KernelError>

Creates a thread in the current process.

Safety

sp must a valid pointer to a stack that is uniquely owned, as the thread will write to it.