1 #ifndef TORCADMINTHREAD_H 2 #define TORCADMINTHREAD_H 23 #define TORC_ADMIN_CRIT_PRIORITY 200 24 #define TORC_ADMIN_HIGH_PRIORITY 100 25 #define TORC_ADMIN_MED_PRIORITY 50 26 #define TORC_ADMIN_LOW_PRIORITY 10 31 static void CreateObjects (
void);
32 static void DestroyObjects (
void);
40 int Priority (
void)
const;
42 virtual void Create (
void) = 0;
43 virtual void Destroy (
void) = 0;
46 static QList<TorcAdminObject*> gTorcAdminObjects;
48 static QMutex *gTorcAdminObjectsLock;
56 #endif // TORCADMINTHREAD_H A simple thread to launch helper objects outside of the main loop.
virtual ~TorcAdminThread()=default
A factory class for automatically running objects outside of the main loop.
#define TORC_ADMIN_LOW_PRIORITY
A Torc specific wrapper around QThread.