void Algorithm::run() { emit wasStarted(); splitter->split(); const QList<Package>& packages = splitter->getSamples(); std::for_each(packages.begin(), packages.end(), Importer()); emit wasFinished(this); }
RemoteViewerCore::~RemoteViewerCore() { try { // Stop all threads. stop(); // If core isn't started, then this thread isn't execute, // wait only thead of FbUpdateNotifier. if (wasStarted()) { waitTermination(); } else { m_fbUpdateNotifier.wait(); } } catch (...) { } }