mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/TACOS.git
synced 2025-09-29 02:57:33 +00:00
Combined watchdog code with latest changes.
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user