#include <GenericThread.h>
|
void | threadRoutine () |
| If you're running in non-threaded mode, you must call this regularly.
|
|
|
void | initialize (bool isThreaded=true, QThread::Priority priority=QThread::NormalPriority) |
|
void | terminate () |
| Call to stop the thread.
|
|
virtual bool | process ()=0 |
| Override this function to do whatever your class actually does, return false to exit thread early.
|
|
|
void | lock () |
| Locks all the resources of the thread.
|
|
void | unlock () |
| Unlocks all the resources of the thread.
|
|
A basic generic "thread" class. Handles a single thread of control within the application. Can operate in non-threaded mode but caller must regularly call threadRoutine() method.
◆ initialize()
void GenericThread::initialize |
( |
bool |
isThreaded = true , |
|
|
QThread::Priority |
priority = QThread::NormalPriority |
|
) |
| |
Call to start the thread.
- Parameters
-
bool | isThreaded true by default. false for non-threaded mode and caller must call threadRoutine() regularly. |
The documentation for this class was generated from the following files: