mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/TACOS.git
synced 2025-08-06 09:37:34 +00:00
Fixed compiler errors
This commit is contained in:
@@ -48,27 +48,13 @@ namespace sta
|
||||
|
||||
void func() override;
|
||||
|
||||
private:
|
||||
class CGuard
|
||||
{
|
||||
public:
|
||||
~CGuard()
|
||||
{
|
||||
if( NULL != Manager::_instance )
|
||||
{
|
||||
delete Manager::_instance;
|
||||
Manager::_instance = NULL;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
static Manager* _instance;
|
||||
|
||||
private:
|
||||
Manager();
|
||||
|
||||
Manager(const Manager&);
|
||||
|
||||
~Manager() {}
|
||||
//~Manager();
|
||||
|
||||
void updateThreads();
|
||||
|
||||
@@ -77,6 +63,19 @@ namespace sta
|
||||
void stopThreads(uint16_t state);
|
||||
|
||||
std::set<TacosThread> threads_[STA_TACOS_NUM_STATES];
|
||||
|
||||
class CGuard
|
||||
{
|
||||
public:
|
||||
~CGuard()
|
||||
{
|
||||
if( NULL != Manager::_instance )
|
||||
{
|
||||
delete Manager::_instance;
|
||||
Manager::_instance = NULL;
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
} // namespace tacos
|
||||
} // namespace sta
|
||||
|
@@ -25,6 +25,8 @@ namespace sta
|
||||
*/
|
||||
TacosThread(const char* name, osPriority_t prio);
|
||||
|
||||
TacosThread();
|
||||
|
||||
virtual ~TacosThread();
|
||||
|
||||
/**
|
||||
@@ -62,7 +64,9 @@ namespace sta
|
||||
* @brief The body of the thread's loop. Has to be implemented by the user.
|
||||
*/
|
||||
virtual void func();
|
||||
|
||||
private:
|
||||
|
||||
/**
|
||||
* @brief Static function to pass to RTOS to run as a thread. Calls the loop function implemented here.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user