| 10 | using namespace pathology; |
| 11 | |
| 12 | IOThread::IOThread(QObject *parent, unsigned int nrThreads) : |
| 13 | QObject(parent), |
| 14 | _abort(false), |
| 15 | _threadsWaiting(0) |
| 16 | { |
| 17 | for (int i = 0; i < nrThreads; ++i) { |
| 18 | IOWorker* worker = new IOWorker(this); |
| 19 | worker->start(QThread::HighPriority); |
| 20 | _workers.push_back(worker); |
| 21 | } |
| 22 | } |
| 23 | |
| 24 | IOThread::~IOThread() |
| 25 | { |