(root)/src/core/threadrunner.h - Rev 200
Rev 187 |
Rev 440 |
Go to most recent revision |
Blame |
Compare with Previous |
Last modification |
View Log
| RSS feed
#ifndef THREADRUNNER_H
#define THREADRUNNER_H
class ResourceUnit;
class ThreadRunner
{
public:
ThreadRunner();
bool multithreading() const { return mMultithreaded; }
void setMultithreading(const bool do_multithreading) { mMultithreaded = do_multithreading; }
void setup(const QList<ResourceUnit*> &resourceUnitList);
void run( ResourceUnit* (*funcptr)(ResourceUnit*) );
void print();
private:
QList<ResourceUnit*> mMap1, mMap2;
bool mMultithreaded;
};
#endif // THREADRUNNER_H