Skip to main content

xila_thread_spawn

Function xila_thread_spawn 

Source
pub unsafe extern "C" fn xila_thread_spawn(
    process: *const Process,
    stack_size: usize,
    entry: ThreadEntry,
    argument: *mut c_void,
    thread: *mut usize,
) -> Status
Expand description

Start a coroutine on the current process’s executor. Zero stack size uses 4 KiB on bare metal or 64 KiB on Linux.

§Safety

The process and output must be live. The entry must never unwind or exceed the requested stack and the argument must remain valid until entry ends.