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

Method shutdown

ASAP/IOThread.cpp:29–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27}
28
29void IOThread::shutdown() {
30 _abort = true;
31 for (std::vector<IOWorker*>::iterator it = _workers.begin(); it != _workers.end(); ++it) {
32 (*it)->abort();
33 while ((*it)->isRunning()) {
34 _condition.wakeOne();
35 }
36 delete (*it);
37 }
38 _workers.clear();
39}
40
41void IOThread::onBackgroundChannelChanged(int channel) {
42 _jobListMutex.lock();

Callers 1

closeMethod · 0.80

Calls 2

abortMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected