#include <sched.h>
Collaboration diagram for Scheduler:

Public Member Functions | |
| void | init () |
| void | create_task (Task_func start_function) |
| void | print () |
Public Attributes | |
| List< Task > | active_tasks |
| Task * | curr_task |
| Task | kernel_task |
| Task | idle_task |
| Timer_callback | context_switch_callback |
Static Public Attributes | |
| const unsigned | TIMESLICE_SIZE = 10 |
|
|
Create a new task and add it to the list. Do not call this until the virtual memory manager is fully initialized. |
|
|
Initialize the scheduler.
|
|
|
Print basic information about this Scheduler.
|
|
|
the list of active tasks to manage
|
|
|
scheduled preemption callback
|
|
|
current executing task
|
|
|
run when there are no active tasks
|
|
|
the very first task
|
|
|
default timer ticks per timeslice
|
Torsion Operating System, Copyright (C) 2000-2004 Dan Helfman