Skip to main content

spawn_thread

Function spawn_thread 

Source
pub fn spawn_thread(
    _func_ptr: EntryFn,
    _ctx: *mut c_void,
    attrs: Option<RtAttrs>,
) -> isize
Expand description

Spawn a thread. ctx is delivered to func_ptr as its sole argument; caller owns the lifetime of the pointee.