24 #ifndef THREADWORKER_H 25 #define THREADWORKER_H 73 virtual void run()
override final;
83 #endif // THREADWORKER_H QThread::Priority mPriority
Assigned priority of the thread.
QString mThreadName
Assigned thread name.
Universal base class for threaded modules.
QString getThreadName() const
Helper function for debugging: Get the current thread id and time.
bool start()
Start thread and move base class to the new thread.
void setTimerInterval(const int msec, const int firstMsec)
Set timer interval in milliseconds.
void setPriority(const QThread::Priority p)
Specify the priority of the thread.
int mFirstInterval
Assigned periodic waiting time in milliseconds.
virtual void run() override final
Private thread worker function, starting execution loop.
void setThreadName(const QString name)
Set thread name.
ThreadBase * pThreadBase
Pointer back to the instance of the ThreadBase.
bool stop()
Send a request to the thread for termination.
void stopTimer()
Helper signal for stopping the temporarily existing timer.
Helper class for ThreadBase.
void setCurrentThreadName(QString threadname)
Helper function for debugging: set the current thread name.
Base class for managing log messages.
ThreadWorker(ThreadBase *threadbase)
Constructor.
void startTimer()
Helper signal for starting the temporarily existing timer.