#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 () |
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] |
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().