Scheduler Class Reference

List of all members.

Public Member Functions

void addThread (Thread *thread)
void yield ()
void exit (int status=0)
void exit (Thread *thread, int status)
ThreadgetRunning ()
void pass (Thread *thread)
void resume (Thread *thread)
void suspend (Thread *thread)
void cacheThreadStack (CPU::Log_Addr stack)
CPU::Log_Addr getThreadStack (unsigned int size)

Static Public Member Functions

static int init (System_Info *si)
static SchedulergetInstance ()
static void schedule ()

Private Types

typedef Queue< ThreadThreadQueue
typedef OrderedCVector< Thread * > ThreadCircVec

Private Member Functions

void insertOnReady (Thread *thread)
ThreadgetNext ()

Private Attributes

ThreadQueue _suspended
ThreadCircVec_readyP
Thread *volatile _running
Thread_main
bool _isCached
Cache< CPU::Log_Addr, Traits
< Thread >::STACK_CACHE_SIZE > 
_stackCache

Static Private Attributes

static Scheduler _instance


Detailed Description

round-robin scheduler for Threads
Author:
Group 06

Definition at line 16 of file scheduler.h.


Member Data Documentation

Internal ordered vector of Threads

Definition at line 64 of file scheduler.h.


The documentation for this class was generated from the following files:

Generated on Mon May 4 09:42:22 2009 for EPOS-- by  doxygen 1.5.8