larger thread rework to support thread restarting

This commit is contained in:
dario
2024-01-24 21:16:55 +01:00
parent 75fe437f1e
commit 1d1c5f4fc2
4 changed files with 90 additions and 90 deletions

View File

@@ -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