mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/TACOS.git
synced 2025-09-29 02:57:33 +00:00
larger thread rework to support thread restarting
This commit is contained in:
@@ -46,6 +46,13 @@ namespace sta
|
||||
}
|
||||
|
||||
void func() override;
|
||||
|
||||
/**
|
||||
* @brief Get the number of thread restarts during the program's runtime.
|
||||
*
|
||||
* @return uint16_t The number of thread restarts.
|
||||
*/
|
||||
uint16_t getNumRestarts();
|
||||
private:
|
||||
static Watchdog* _instance;
|
||||
|
||||
@@ -62,9 +69,13 @@ namespace sta
|
||||
}
|
||||
};
|
||||
|
||||
Watchdog(const Watchdog&);
|
||||
Watchdog();
|
||||
|
||||
Watchdog();
|
||||
Watchdog(const Watchdog&);
|
||||
|
||||
~Watchdog() {}
|
||||
private:
|
||||
uint16_t restarts_;
|
||||
};
|
||||
} // namespace tacos
|
||||
} // namespace sta
|
||||
|
Reference in New Issue
Block a user