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

Method addJob

ASAP/IOThread.cpp:69–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67}
68
69void IOThread::addJob(const unsigned int tileSize, const long long imgPosX, const long long imgPosY, const unsigned int level, ImageSource* foregroundTile)
70{
71 ThreadJob* job = NULL;
72 if (foregroundTile) {
73 job = new RenderJob(tileSize, imgPosX, imgPosY, level, foregroundTile);
74 }
75 else {
76 job = new IOJob(tileSize, imgPosX, imgPosY, level);
77 }
78 QMutexLocker locker(&_jobListMutex);
79 _jobList.push_front(job);
80 _condition.wakeOne();
81}
82
83void IOThread::setForegroundImage(std::weak_ptr<MultiResolutionImage> for_img, float scale) {
84 QMutexLocker locker(&_jobListMutex);

Callers 2

updateTileForegoundsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected