11 #ifndef FW_ACTIVE_COMPONENT_BASE_HPP 12 #define FW_ACTIVE_COMPONENT_BASE_HPP 52 #if FW_OBJECT_TO_STRING == 1 53 virtual const char* getToStringFormatString();
57 static void s_taskStateMachine(
void*);
58 static void s_taskLoop(
void*);
static constexpr FwSizeType TASK_DEFAULT
Lifecycle
Tracks the lifecycle of the component.
Os::Task m_task
task object for active component
void exit()
exit task in active component
Initial stage, call preamble.
void init()
Object initializer.
message to exit active component task
virtual void finalizer()
A function that will be called after exiting the loop.
ActiveComponentBase(const char *name)
Constructor.
C++-compatible configuration header for fprime configuration.
virtual void preamble()
A function that will be called before the event loop is entered.
FwSizeType ParamType
backwards-compatible parameter type
void start(Os::Task::ParamType priority=Os::Task::TASK_DEFAULT, Os::Task::ParamType stackSize=Os::Task::TASK_DEFAULT, Os::Task::ParamType cpuAffinity=Os::Task::TASK_DEFAULT, Os::Task::ParamType identifier=Os::Task::TASK_DEFAULT)
called by instantiator when task is to be started
MsgDispatchStatus dispatch()
The function that will dispatching messages.
virtual ~ActiveComponentBase()
Destructor.
Os::Task::Status join()
Join the thread.
DEPRECATED(Os::Task::Status join(void **value_ptr), "Switch to .join()")
Join to thread with discarded value_ptr.
Component is dispatching messages.
Penultimate stage, call finalizer.