MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / threadDone

Method threadDone

gui/threadhandler.cpp:184–213  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

182}
183
184void ThreadHandler::threadDone()
185{
186 mRunningThreadCount--;
187
188 // TODO: also run with projects?
189 if (mRunningThreadCount == 0 && mAnalyseWholeProgram) {
190 createThreads(1);
191 mRunningThreadCount = 1;
192 setupCheckThread(*mThreads[0]);
193 mThreads[0]->analyseWholeProgram(mLastFiles, mCtuInfo);
194 mAnalyseWholeProgram = false;
195 mCtuInfo.clear();
196 return;
197 }
198
199 if (mRunningThreadCount == 0) {
200 emit done();
201
202 mScanDuration = mTimer.elapsed();
203
204 // Set date/time used by the recheck
205 if (!mCheckStartTime.isNull()) {
206 mLastCheckTime = mCheckStartTime;
207 mCheckStartTime = QDateTime();
208 }
209
210 mCheckAddonsAndTools.clear();
211 mCheckSuppressions.reset();
212 }
213}
214
215void ThreadHandler::stop()
216{

Callers

nothing calls this directly

Calls 3

analyseWholeProgramMethod · 0.45
clearMethod · 0.45
resetMethod · 0.45

Tested by

no test coverage detected