Themaopdracht 8 - Hartslagmonitor  2013 - Martin Rijntjes
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Friends Macros Pages
RTOS Class Reference

static class, namespace-like container for RTOS declarations More...

#include <pRTOS.h>

Classes

class  channel
 waitable data queue More...
 
class  channel_base
 RTOS private implementation class. More...
 
class  clock
 free-running clock, ticks at a fixed frequency More...
 
class  event
 set of things that can happen, or a thing that has happened More...
 
class  flag
 basic synchronisation mechanism. More...
 
class  mailbox
 synchronous handling over of a data item More...
 
class  mailbox_base
 RTOS private implementation class. More...
 
class  mutex
 mutual execlusion semaphore More...
 
class  pool
 place to store and rectrieve data, no built-in synchronisation More...
 
class  pool_base
 RTOS private implementation class. More...
 
class  task
 an independent thread of execution More...
 
class  timer
 one-short timer More...
 
class  waitable
 abstract thing that a task can wait for More...
 

Static Public Member Functions

static void run (void)
 runs the scheduler More...
 
static taskcurrent_task (void)
 returns (a pointer to) the currently executing task More...
 
static unsigned long long int run_time (void)
 get elapsed time in micro seconds since OS startup More...
 
static void print (std::ostream &stream)
 prints statistics about the tasks to the stream. More...
 
static void statistics_clear (void)
 clears the statistics. More...
 
static void display_statistics (void)
 print the statistics More...
 

Friends

void timerISR (void)
 the timer interrupt, updates runTime and ElapsedTime More...
 

Detailed Description

static class, namespace-like container for RTOS declarations

The RTOS is a static class, instatiation is not needed. After creating the tasks, call RTOS::run() to start the scheduling the tasks. RTOS::run() will never return.

Member Function Documentation

static task* RTOS::current_task ( void  )
inlinestatic

returns (a pointer to) the currently executing task

void RTOS::display_statistics ( void  )
static

print the statistics

void RTOS::print ( std::ostream &  stream)
static

prints statistics about the tasks to the stream.

void RTOS::run ( void  )
static

runs the scheduler

unsigned long long int RTOS::run_time ( void  )
static

get elapsed time in micro seconds since OS startup

static void RTOS::statistics_clear ( void  )
inlinestatic

clears the statistics.

The actual clearing will be done later, inside run(), when the current task has given up the processor.

Friends And Related Function Documentation

void timerISR ( void  )
friend

the timer interrupt, updates runTime and ElapsedTime


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