Combined watchdog code with latest changes.

This commit is contained in:
dario
2024-01-03 14:55:16 +01:00
parent 2494b4f0c1
commit 05ddf1fb03
7 changed files with 250 additions and 10 deletions

View File

@@ -17,6 +17,7 @@
#include <set>
#include <list>
#include <vector>
#include <memory>
#include <sta/tacos/thread.hpp>
@@ -59,10 +60,16 @@ namespace sta
*/
void registerThread(std::shared_ptr<TacosThread> thread, std::list<uint16_t> states);
/**
* @brief Get the Active Threads object
*
* @return std::vector<std::shared_ptr<TacosThread>>
*/
std::vector<std::shared_ptr<TacosThread>> getActiveThreads();
void init() override;
void func() override;
private:
static Manager* _instance;
@@ -105,7 +112,7 @@ namespace sta
*
* @ingroup tacos_manager
*/
std::set<std::shared_ptr<TacosThread>> threads_[STA_TACOS_NUM_STATES];
std::vector<std::shared_ptr<TacosThread>> threads_[STA_TACOS_NUM_STATES];
};
} // namespace tacos
} // namespace sta