| 81 | } |
| 82 | |
| 83 | void IOThread::setForegroundImage(std::weak_ptr<MultiResolutionImage> for_img, float scale) { |
| 84 | QMutexLocker locker(&_jobListMutex); |
| 85 | _for_img = for_img; |
| 86 | for (unsigned int i = 0; i < _workers.size(); ++i) { |
| 87 | _workers[i]->setForegroundImage(for_img, scale); |
| 88 | } |
| 89 | } |
| 90 | |
| 91 | void IOThread::setBackgroundImage(std::weak_ptr<MultiResolutionImage> bck_img) { |
| 92 | QMutexLocker locker(&_jobListMutex); |
no test coverage detected