MCPcopy Create free account
hub / github.com/computationalpathologygroup/ASAP / clearJobs

Method clearJobs

ASAP/IOThread.cpp:120–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118}
119
120void IOThread::clearJobs() {
121 QMutexLocker locker(&_jobListMutex);
122 for (auto job : _jobList) {
123 if (_workers.size() > 0) {
124 if (dynamic_cast<IOJob*>(job)) {
125 emit _workers[0]->tileLoaded(nullptr, job->_imgPosX, job->_imgPosY, job->_tileSize, 0, job->_level, nullptr, nullptr);
126 }
127 else {
128 emit _workers[0]->foregroundTileRendered(nullptr, job->_imgPosX, job->_imgPosY, job->_level);
129 }
130 }
131 delete job;
132 }
133 _jobList.clear();
134}
135
136unsigned int IOThread::numberOfJobs() {
137 _jobListMutex.lock();

Callers 2

updateTileForegoundsMethod · 0.80
clearMethod · 0.80

Calls 2

sizeMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected