#include <SfUTask.h>
Inheritance diagram for SfUTask::
Public Methods | |
SfUTask (char *name, int priority) | |
Constructor, must be chained to by the subclass. | |
virtual | ~SfUTask () |
Destructor. | |
void | suspendTask () |
Suspend the task. | |
void | resumeTask () |
Resume the task. | |
virtual void | process () |
Task main body, called every sync cycle. | |
Public Attributes | |
int | processState |
Process state. Can be written to during normal processing, to set a user-defined state. Should not be used to suspend or resume the uTask. |
This Saphira micro-task class is a wrapper for the Aria synchronous task facility. Each SfUTask object is has its process() function called during the 100 ms synchronous cycle.
There are functions for suspending and resuming the uTask, which can be called from within process() or outside of it.
There is a tutorial program in the directory Saphira/tutor/task.