pub fn task_exit() {
    let is_preemptive = critical_section(|cs_token| {
        let handler = &mut TaskManager.borrow(cs_token).borrow_mut();
        let curr_tid = handler.curr_tid;
        #[cfg(feature = "system_logger")]
        {
            if logging::get_task_exit() {
                logging::report(LogEventType::TaskExit(curr_tid as TaskId));
            }
        }
        handler.active_tasks &= !(1 << curr_tid as u32);
        handler.is_preemptive
    });
    schedule(is_preemptive);
}
/// The `task_exit` function is called just after a task finishes execution. It marks the current running task as finished and then schedules the next high priority task.
The `task_exit` function is called just after a task finishes execution. It marks the current running task as finished and then schedules the next high priority task.
The ` task_exit ` function is called just after a task finishes execution . It marks the current running task as finished and then schedules the next high priority task .
pub fn task_exit() {
    let is_preemptive = critical_section(|cs_token| {
        let handler = &mut TaskManager.borrow(cs_token).borrow_mut();
        let curr_tid = handler.curr_tid;
        #[cfg(feature = "system_logger")]
        {
            if logging::get_task_exit() {
                logging::report(LogEventType::TaskExit(curr_tid as TaskId));
            }
        }
        handler.active_tasks &= !(1 << curr_tid as u32);
        handler.is_preemptive
    });
    schedule(is_preemptive);
}
pub fn task_exit ( ) { let is_preemptive = critical_section ( | cs_token | { let handler = & mut TaskManager . borrow ( cs_token ) . borrow_mut ( ) ; let curr_tid = handler . curr_tid ; # [ cfg ( feature " " ) ] { if logging :: get_task_exit ( ) { logging :: report ( LogEventType :: TaskExit ( curr_tid as TaskId ) ) ; } } handler . active_tasks &= ! ( 1 << curr_tid as u32 ) ; handler . is_preemptive } ) ; schedule ( is_preemptive ) ; }
The `task_exit` function is called just after a task finishes execution.
The ` task_exit ` function is called just after a task finishes execution .