pub fn create_task(
    priority: TaskId,
    deadline: u32,
    stack: &mut [u32],
    handler_fn: fn(int) -> !,
) -> Result<(), KernelError> {
    priv_execute!({
        critical_section(|cs_token| {
            TaskManager.borrow(cs_token).borrow_mut().create_task(
                priority as usize,
                deadline,
                stack,
                handler_fn,
            )
        })
    })
}
/// Create a new task with the configuration set as arguments passed.
Create a new task with the configuration set as arguments passed.
Create a new task with the configuration set as arguments passed .
pub fn create_task(
    priority: TaskId,
    deadline: u32,
    stack: &mut [u32],
    handler_fn: fn(int) -> !,
) -> Result<(), KernelError> {
    priv_execute!({
        critical_section(|cs_token| {
            TaskManager.borrow(cs_token).borrow_mut().create_task(
                priority as usize,
                deadline,
                stack,
                handler_fn,
            )
        })
    })
}
pub fn create_task ( priority : TaskId , deadline : u32 , stack : & mut [ u32 ] , handler_fn : fn ( int ) -> ! , ) -> Result < ( ) , KernelError > { priv_execute ! ( { critical_section ( cs_token { TaskManager borrow ( cs_token ) borrow_mut ( ) create_task ( priority as usize deadline stack handler_fn ) } ) } ) }
Create a new task with the configuration set as arguments passed.
Create a new task with the configuration set as arguments passed .
priority
TaskId
deadline
u32
stack
&mut [u32]
handler_fn
fn(int) -> !
priority
TaskId
deadline
u32
stack
&mut [u32]
handler_fn
fn(int) -> !