mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/TACOS.git
synced 2025-09-28 18:57:33 +00:00
added the ability to announce the creation and termination of TacosThreads in init() and cleanup(). Needs to be enabled with #define STA_TACOS_DIAGNOSTICS_ENABLED
This commit is contained in:
@@ -56,7 +56,11 @@ namespace sta
|
||||
}
|
||||
}
|
||||
|
||||
void TacosThread::init() {}
|
||||
void TacosThread::init() {
|
||||
#ifdef STA_TACOS_DIAGNOSTICS_ENABLED
|
||||
STA_DEBUG_PRINTF("Started %s", getName());
|
||||
#endif //STA_TACOS_DIAGNOSTICS_ENABLED
|
||||
}
|
||||
|
||||
void TacosThread::loop()
|
||||
{
|
||||
@@ -102,7 +106,11 @@ namespace sta
|
||||
osThreadExit();
|
||||
}
|
||||
|
||||
void TacosThread::cleanup() {}
|
||||
void TacosThread::cleanup() {
|
||||
#ifdef STA_TACOS_DIAGNOSTICS_ENABLED
|
||||
STA_DEBUG_PRINTF("Stopped %s", getName());
|
||||
#endif
|
||||
}
|
||||
|
||||
void TacosThread::sleep(uint32_t ticks)
|
||||
{
|
||||
|
Reference in New Issue
Block a user