#include "irq.h"#include "task.h"#include "list.h"#include "timer.h"Include dependency graph for sched.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Classes | |
| class | Scheduler |
| The Scheduler manages all active tasks and is responsible for switching between them to provide software multitasking. More... | |
Functions | |
| void | context_switch () |
| void | sleep (unsigned milliseconds) |
| bool | wakeup (void *task) |
| void | die () |
| void | idle_function () |
Variables | |
| Scheduler | scheduler |
|
|
Perform an actual context switch from the current task to the next one. This is called periodically by the Timer, and can also be called manually in order to yield the remainder of the current task's timeslice. |
|
|
Quit the current task and have a slice of quiche.
|
|
|
The function that is run by the idle task.
|
|
|
Put the current task to sleep for the given number of milliseconds.
|
|
|
Wake up the given task.
|
|
|
|
Torsion Operating System, Copyright (C) 2000-2004 Dan Helfman