Skip to main content

spawn_raw

Function spawn_raw 

Source
pub fn spawn_raw<F>(
    entry: F,
    name: String,
    stack_size: usize,
) -> Result<ThreadHandle, TaskError>
where F: FnOnce() + Send + 'static,
Expand description

Creates a scheduler-owned kernel thread and enqueues it on the current CPU.