F´ Flight Software - C/C++ Documentation NASA-v1.6.0
A framework for building embedded system applications to NASA flight quality standards.
Loading...
Searching...
No Matches
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
14namespace Os {
20 public:
22 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
forward declaration
Definition Task.hpp:15
void removeTask(Task *task)
TaskRunner()
< Nothing constructor
void addTask(Task *task)
Definition File.cpp:6