Changed registerThread to accept shared_ptrs to fix some issues with polymorphism.

This commit is contained in:
dario
2023-09-29 15:12:44 +02:00
parent 54b2e4e9cd
commit 1a9a96503e
8 changed files with 28 additions and 35 deletions

View File

@@ -61,12 +61,12 @@ namespace sta
/**
* @brief This function is executed first when this thread is started.
*/
virtual void init();
virtual void init() = 0;
/**
* @brief The body of the thread's loop. Has to be implemented by the user.
*/
virtual void func();
virtual void func() = 0;
private: