MCPcopy Create free account
hub / github.com/IENT/YUView / quitWhenDone

Method quitWhenDone

YUViewLib/src/video/VideoCache.cpp:192–209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

190 quitting = false;
191 }
192 void quitWhenDone()
193 {
194 quitting = true;
195 if (threadWorker->isWorking())
196 {
197 // We must wait until the worker is done.
198 DEBUG_CACHING("loadingThread::quitWhenDone waiting for worker to finish...");
199 connect(worker(), &loadingWorker::loadingFinished, this, [=] {
200 DEBUG_CACHING("loadingThread::quitWhenDone worker done -> quit");
201 quit();
202 });
203 }
204 else
205 {
206 DEBUG_CACHING("loadingThread::quitWhenDone quit now");
207 quit();
208 }
209 }
210 loadingWorker *worker() { return threadWorker.data(); }
211 bool isQuitting() { return quitting; }
212

Callers 1

~VideoCacheMethod · 0.80

Calls 1

isWorkingMethod · 0.80

Tested by

no test coverage detected