src/kernel/task/scheduler.c
/**
 * @note remove a thread from local scheduler queue.
 * @param thread
 */
@note remove a thread from local scheduler queue.
@param thread
@note remove a thread from local scheduler queue . @param thread
void scheduler_remove(thread_t * thread){
    base_t level = intr_disable();
    link_t * cpu_queue = get_cpu_var(ready_queues);
    link_remove_by_data(cpu_queue, thread);
    put_cpu_var(ready_queues);
    intr_enable(level);
}
void scheduler_remove ( thread_t * thread ) { base_t level = intr_disable ( ) ; link_t * cpu_queue = get_cpu_var ( ready_queues ) ; link_remove_by_data ( cpu_queue , thread ) ; put_cpu_var ( ready_queues ) ; intr_enable ( level ) ; }
@note remove a thread from local scheduler queue.
@note remove a thread from local scheduler queue .