src/kernel/task/scheduler.c
/*
 * @note: This function is a wrapper
 *        of scheduler core function.
 *        Running thread can invoke this
 *        to active scheduler.
 *        scheduler active can invoked everywhere
 *        except top half in interrupt handler.
 */
@note: This function is a wrapper
of scheduler core function.
Running thread can invoke this
to active scheduler.
scheduler active can invoked everywhere
except top half in interrupt handler.
@note : This function is a wrapper of scheduler core function . Running thread can invoke this to active scheduler . scheduler active can invoked everywhere except top half in interrupt handler .
void scheduler_active(){
    do {
        preempt_disable();
        __scheduler_core();
        preempt_enable_noresched();
    } while (threads_get_resched());
}
void scheduler_active ( ) { do { preempt_disable ( ) ; __scheduler_core ( ) ; preempt_enable_noresched ( ) ; } while ( threads_get_resched ( ) ) ; }
@note: This function is a wrapper
        of scheduler core function.
@note : This function is a wrapper of scheduler core function .