F´ Flight Software - C/C++ Documentation  devel
A framework for building embedded system applications to NASA flight quality standards.
TaskRunner.hpp
Go to the documentation of this file.
1 /*
2  * TaskRunner.hpp
3  *
4  * Created on: Feb 28, 2019
5  * Author: lestarch
6  */
7 
8 #include <Os/Task.hpp>
9 
10 #ifndef OS_BAREMETAL_TASKRUNNER_TASKRUNNER_HPP_
11 #define OS_BAREMETAL_TASKRUNNER_TASKRUNNER_HPP_
12 
13 #define TASK_REGISTRY_CAP 100
14 namespace Os {
20  public:
22  TaskRunner();
24  ~TaskRunner();
30  void addTask(Task* task);
35  void removeTask(Task* task);
39  void stop();
43  void run();
44  private:
45  U32 m_index;
46  Task* m_task_table[TASK_REGISTRY_CAP];
47  bool m_cont;
48 };
49 } //End Namespace Os
50 #endif /* OS_BAREMETAL_TASKRUNNER_TASKRUNNER_HPP_ */
#define TASK_REGISTRY_CAP
Definition: TaskRunner.hpp:13
void removeTask(Task *task)
Definition: TaskRunner.cpp:30
TaskRunner()
< Nothing constructor
Definition: TaskRunner.cpp:13
void addTask(Task *task)
Definition: TaskRunner.cpp:24