![]() |
RTXI 1.3
|
#include <rt.h>
Classes | |
| class | SetPeriodEvent |
Public Member Functions | |
| long long | getPeriod (void) const |
| int | setPeriod (long long period) |
| void | foreachDevice (void(*callback)(Device *, void *), void *param) |
| void | foreachThread (void(*callback)(Thread *, void *), void *param) |
| int | postEvent (Event *event, bool blocking=true) |
Static Public Member Functions | |
| static System * | getInstance (void) |
Friends | |
| class | Device |
| class | Thread |
Manages the RTOS as well as all objects that require realtime execution.
| void RT::System::foreachDevice | ( | void(*)(Device *, void *) | callback, |
| void * | param | ||
| ) |
Loop through each Device and executes a callback. The callback takes two parameters, a Device pointer and param, the second parameter to foreachDevice.
| callback | The callback function. |
| param | A parameter to the callback function. |
| void RT::System::foreachThread | ( | void(*)(Thread *, void *) | callback, |
| void * | param | ||
| ) |
Loop through each Thread and executes a callback. The callback takes two parameters, a Thread pointer and param, the second parameter to foreachThread.
| callback | The callback function |
| param | A parameter to the callback function |
| RT::System * RT::System::getInstance | ( | void | ) | [static] |
| long long RT::System::getPeriod | ( | void | ) | const [inline] |
| int RT::System::postEvent | ( | RT::Event * | event, |
| bool | blocking = true |
||
| ) |
Post an Event for execution by the realtime task, this acts as a mechanism to synchronizing with the realtime task.
| event | The event to be posted. |
| blocking | If true the call to postEvent is blocking. |
| int RT::System::setPeriod | ( | long long | period | ) |