22 #ifndef ThreadCreator_h_ 23 #define ThreadCreator_h_ 25 #include <Poco/Thread.h> 26 #include <sys/resource.h> 27 #include <sys/types.h> 86 template<
class ThreadMaster>
95 typedef void(ThreadMaster::*
Action)(void);
100 inline Poco::Thread::TID getTID()
const 114 void sleep(
long milliseconds );
116 inline bool isRunning()
const 118 return thr.isRunning();
126 inline void setFinalAction( ThreadMaster* m,
Action a )
132 inline void setInitialAction( ThreadMaster* m,
Action a )
148 virtual void initial()
154 virtual void terminate() {}
159 ThreadMaster* m = {
nullptr };
162 ThreadMaster* finm = {
nullptr };
165 ThreadMaster* initm = {
nullptr };
172 template <
class ThreadMaster>
183 template <
class ThreadMaster>
194 template <
class ThreadMaster>
200 template <
class ThreadMaster>
206 template <
class ThreadMaster>
209 thr.sleep(milliseconds);
212 template <
class ThreadMaster>
223 template <
class ThreadMaster>
228 template <
class ThreadMaster>
234 template <
class ThreadMaster>
242 #endif // ThreadCreator_h_ Definition: CallbackTimer.h:29
Poco::Thread::Priority getPriority() const
Definition: ThreadCreator.h:235
void setPriority(Poco::Thread::Priority prior)
Definition: ThreadCreator.h:229
Definition: ThreadCreator.h:87
void(ThreadMaster::* Action)(void)
Definition: ThreadCreator.h:95