Smarts::Runnable Class Reference

#include <Runnable.h>

Inheritance diagram for Smarts::Runnable:

Inheritance graph
[legend]

List of all members.


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.

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 ()


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.

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]

References run().

Referenced by Smarts::SystemContext::runSomething().

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


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

Generated on Sun May 17 21:46:26 2009 for FreePOOMA by  doxygen 1.5.5