Combined watchdog code with latest changes.

This commit is contained in:
dario
2024-01-03 14:55:16 +01:00
parent 1a80082a0b
commit 14142d5b62
7 changed files with 256 additions and 9 deletions

View File

@@ -17,6 +17,7 @@
#include <set>
#include <list>
#include <vector>
#include <memory>
#include <sta/tacos/thread.hpp>
@@ -61,10 +62,16 @@ namespace sta
*/
void registerThread(std::shared_ptr<TacosThread> thread, std::set<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;
@@ -107,7 +114,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