refactor: merged manger task into statemachine task

This commit is contained in:
CarlWachter
2024-11-03 13:13:58 +01:00
parent b39a2a9027
commit 7152baca2a
10 changed files with 137 additions and 266 deletions

View File

@@ -9,7 +9,6 @@
#define STA_TACOS_HPP
#include <sta/tacos/thread.hpp>
#include <sta/tacos/manager.hpp>
#include <sta/tacos/statemachine.hpp>
#include <sta/tacos/can_bus.hpp>
@@ -74,7 +73,7 @@ namespace sta
{
std::shared_ptr<T> thread_ptr = std::make_shared<T>(args...);
Manager::instance()->registerThread(thread_ptr, states);
Statemachine::instance()->registerThread(thread_ptr, states);
return thread_ptr;
}