void HttpServer::incomingConnection(int nSocket) { HttpWorkerThread *pThread = (HttpWorkerThread *)GetWorkerThread(); if (pThread != NULL) pThread->StartWork( nSocket ); }
void StatGetter::GetStatsForPath(const QString& rootPath) { pathInWork_ = rootPath; assert(!pathInWork_.isEmpty()); if (IsRunning()) { RiseRunningThreadWarningMsg(); return; } statTree_.clear(); subdirsInCurPathCount_ = 0; StatsCont cont {statTree_, subdirsInCurPathCount_}; currentThreadClass_.reset(new StatGetterThread(rootPath, cont, GetProgBar(), GetLabel()) ); connect(&GetWorkerThread(), SIGNAL(started()), currentThreadClass_.data(), SLOT(onStart())); RunThread(currentThreadClass_.data()); }