Smarts::Runnable Class Reference

Runnable is the base class for system classes "Thread" and "Iterate". More...

#include <Runnable.h>

Inheritance diagram for Smarts::Runnable:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 Runnable ()
 Runnable (int)
 The parameter to this constructor is the CPU id for hard affinity.
virtual ~Runnable ()
int priority ()
 Accessor function to priority.
void priority (int _priority)
 Set priority of this runnable relative to other runnables being scheduled.
virtual void execute ()

Protected Member Functions

virtual void run ()


Detailed Description

Runnable is the base class for system classes "Thread" and "Iterate".

However, the user may define his/her own sub-class. Any class derived from Runnable, is an object that the scheduler understands and therefore is the mechanism to have something executed in parallel by the scheduler on behalf of the user.


Constructor & Destructor Documentation

Smarts::Runnable::Runnable (  )  [inline]

Smarts::Runnable::Runnable ( int   )  [inline]

The parameter to this constructor is the CPU id for hard affinity.

virtual Smarts::Runnable::~Runnable (  )  [inline, virtual]


Member Function Documentation

int Smarts::Runnable::priority (  )  [inline]

Accessor function to priority.

Referenced by Smarts::add().

void Smarts::Runnable::priority ( int  _priority  )  [inline]

Set priority of this runnable relative to other runnables being scheduled.

virtual void Smarts::Runnable::execute (  )  [inline, virtual]

virtual void Smarts::Runnable::run (  )  [inline, protected, virtual]

Reimplemented in Smarts::Iterate< SerialAsync >, and Smarts::Iterate< Stub >.

Referenced by execute().


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

Generated on Wed Mar 16 06:22:48 2011 for FreePOOMA by  doxygen 1.5.9