Added first implementation

This commit is contained in:
dario
2024-01-07 00:41:32 +01:00
parent b41426feaf
commit 5681411c65
13 changed files with 418 additions and 0 deletions

View File

@@ -0,0 +1,37 @@
/*
* supervisor.hpp
*
* Created on: Jan 6, 2024
* Author: Dario
*/
#ifndef STA_TASTY_TASKS_SUPERVISOR_HPP
#define STA_TASTY_TASKS_SUPERVISOR_HPP
#include <sta/tacos/thread.hpp>
#include <list>
#include <functional>
namespace sta
{
namespace tasty
{
typedef std::function<void(void)> TastyCheck;
class Supervisor : public tacos::TacosThread
{
public:
Supervisor(std::list<TastyCheck> checks);
void func() override;
private:
std::list<TastyCheck> checks_;
};
} // namespace tasty
} // namespace sta
#endif // STA_TASTY_TASKS_SUPERVISOR_HPP