FreePOOMA
2.4.1
|
Runnable is the base class for system classes "Thread" and "Iterate". More...
#include <Runnable.h>
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 () |
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.
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] |
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] |
References run().
Referenced by Smarts::add(), and Smarts::SystemContext::runSomething().
virtual void Smarts::Runnable::run | ( | ) | [inline, protected, virtual] |
Reimplemented in Smarts::Iterate< SerialAsync >, and Smarts::Iterate< Stub >.
Referenced by execute().