F´ Flight Software - C/C++ Documentation  devel
A framework for building embedded system applications to NASA flight quality standards.
BareTaskHandle.hpp
Go to the documentation of this file.
1 /*
2  * BareTaskHandle.hpp
3  *
4  * Created on: Feb 28, 2019
5  * Author: lestarch
6  */
7 #ifndef OS_BAREMETAL_TASKRUNNER_BARETASKHANDLE_HPP_
8 #define OS_BAREMETAL_TASKRUNNER_BARETASKHANDLE_HPP_
9 #include <Os/Task.hpp>
10 namespace Os {
15  public:
17  BareTaskHandle() : m_enabled(false), m_priority(0), m_routine(nullptr) {}
19  bool m_enabled;
25  void* m_argument;
26 };
27 }
28 #endif /* OS_BAREMETAL_TASKRUNNER_BARETASKHANDLE_HPP_ */
PlatformIntType NATIVE_INT_TYPE
Definition: BasicTypes.h:51
BareTaskHandle()
< Constructor sets enabled to false
bool m_enabled
Save the priority.
Task::taskRoutine m_routine
Argument input pointer.
NATIVE_INT_TYPE m_priority
Function passed into the task.
void(* taskRoutine)(void *ptr)
Prototype for task routine started in task context.
Definition: Task.hpp:58