COSA
An Object-Oriented Platform for Arduino Programming
RTT::Scheduler Class Reference

#include <RTT.hh>

Inheritance diagram for RTT::Scheduler:
Inheritance graph
Collaboration diagram for RTT::Scheduler:
Collaboration graph

Public Member Functions

 Scheduler ()
 
virtual bool start (Job *job)
 
virtual void dispatch ()
 
virtual uint32_t time ()
 
virtual bool stop (Job *job)
 

Protected Attributes

Head m_queue
 

Detailed Description

RTT Scheduler for jobs with a delay of 50 us or longer.

Definition at line 133 of file RTT.hh.

Constructor & Destructor Documentation

RTT::Scheduler::Scheduler ( )
inline

Construct and register a RTT Job Scheduler. Should be a singleton.

Definition at line 139 of file RTT.hh.

Member Function Documentation

void RTT::Scheduler::dispatch ( )
virtual

Dispatch expired jobs. Called from RTT ISR.

Reimplemented from Job::Scheduler.

Definition at line 70 of file RTT_Scheduler.cpp.

bool RTT::Scheduler::start ( Job job)
virtual

Start given job. Returns true(1) if successful otherwise false(0).

Returns
bool.

Reimplemented from Job::Scheduler.

Definition at line 25 of file RTT_Scheduler.cpp.

bool Job::Scheduler::stop ( Job job)
virtualinherited

Stop given job. Returns true(1) if successful otherwise false(0).

Parameters
[in]jobto stop.
Returns
bool.

Definition at line 44 of file Job_Scheduler.cpp.

uint32_t RTT::Scheduler::time ( )
virtual

Return current time in micro-seconds.

Implements Job::Scheduler.

Definition at line 109 of file RTT_Scheduler.cpp.

Member Data Documentation

Head Job::Scheduler::m_queue
protectedinherited

Job queue.

Definition at line 84 of file Job.hh.


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