Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

sched.h File Reference

#include "irq.h"
#include "task.h"
#include "list.h"
#include "timer.h"

Include dependency graph for sched.h:

Include dependency graph

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

Included by dependency graph

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


Function Documentation

void context_switch  ) 
 

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.

void die  ) 
 

Quit the current task and have a slice of quiche.

void idle_function  ) 
 

The function that is run by the idle task.

void sleep unsigned  milliseconds  ) 
 

Put the current task to sleep for the given number of milliseconds.

bool wakeup void *  task  ) 
 

Wake up the given task.


Variable Documentation

Scheduler scheduler
 


Torsion Operating System, Copyright (C) 2000-2004 Dan Helfman