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
14
namespace
Os
{
19
class
TaskRunner
:
TaskRegistry
{
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_ */
Task.hpp
TASK_REGISTRY_CAP
#define TASK_REGISTRY_CAP
Definition
TaskRunner.hpp:13
Os::Task
forward declaration
Definition
Task.hpp:15
Os::TaskRegistry
Definition
Task.hpp:82
Os::TaskRunner
Definition
TaskRunner.hpp:19
Os::TaskRunner::removeTask
void removeTask(Task *task)
Definition
TaskRunner.cpp:30
Os::TaskRunner::stop
void stop()
Definition
TaskRunner.cpp:50
Os::TaskRunner::run
void run()
Definition
TaskRunner.cpp:54
Os::TaskRunner::TaskRunner
TaskRunner()
< Nothing constructor
Definition
TaskRunner.cpp:13
Os::TaskRunner::~TaskRunner
~TaskRunner()
Definition
TaskRunner.cpp:22
Os::TaskRunner::addTask
void addTask(Task *task)
Definition
TaskRunner.cpp:24
Os
Definition
File.cpp:6
Os
Baremetal
TaskRunner
TaskRunner.hpp
Generated by
1.9.7