| 89 | } |
| 90 | |
| 91 | void IOThread::setBackgroundImage(std::weak_ptr<MultiResolutionImage> bck_img) { |
| 92 | QMutexLocker locker(&_jobListMutex); |
| 93 | _bck_img = bck_img; |
| 94 | for (unsigned int i = 0; i < _workers.size(); ++i) { |
| 95 | _workers[i]->setBackgroundImage(_bck_img); |
| 96 | } |
| 97 | } |
| 98 | |
| 99 | unsigned int IOThread::getWaitingThreads() { |
| 100 | return _threadsWaiting; |