Overte C++ Documentation
GenericThread Class Referenceabstract

#include <GenericThread.h>

Inheritance diagram for GenericThread:

Public Slots

void threadRoutine ()
 If you're running in non-threaded mode, you must call this regularly.
 

Public Member Functions

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.
 

Protected Member Functions

void lock ()
 Locks all the resources of the thread.
 
void unlock ()
 Unlocks all the resources of the thread.
 

Detailed Description

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.

Member Function Documentation

◆ initialize()

void GenericThread::initialize ( bool  isThreaded = true,
QThread::Priority  priority = QThread::NormalPriority 
)

Call to start the thread.

Parameters
boolisThreaded 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: