[][src]Function fe_osi::task::task_spawn

pub fn task_spawn<T: Send>(
    stack_size: usize,
    entry_point: fn(_: &mut T),
    parameter: Option<Box<T>>
)

Creates a new task that will be run.

#Examples

fn test_task(_: &mut u8) {
    loop {}
}
task_spawn(1024, test_task, None);