add static thread names

This commit is contained in:
sehraf 2016-06-01 16:18:19 +02:00
parent 5b67654530
commit f16ee97093
7 changed files with 10 additions and 10 deletions

View File

@ -30,7 +30,7 @@ RsControlModule::RsControlModule(int argc, char **argv, StateTokenServer* sts, A
this->argv = argv;
// start worker thread
if(full_control)
start("RS ctrl module");
start("resapi ctrl mod");
else
mRunState = RUNNING_OK_NO_FULL_CONTROL;

View File

@ -188,18 +188,18 @@ void ftServer::StartupThreads()
/* self contained threads */
/* startup ExtraList Thread */
mFtExtra->start("RS ft extra lst");
mFtExtra->start("ft extra lst");
/* startup Monitor Thread */
/* startup the FileMonitor (after cache load) */
/* start it up */
mFiMon->start("RS ft monitor");
mFiMon->start("ft monitor");
/* Controller thread */
mFtController->start("RS ft ctrl");
mFtController->start("ft ctrl");
/* Dataplex */
mFtDataplex->start("RS ft dataplex");
mFtDataplex->start("ft dataplex");
}
void ftServer::StopThreads()

View File

@ -592,7 +592,7 @@ bool ftTransferModule::checkFile()
// Note: using new is really important to avoid copy and write errors in the thread.
//
_hash_thread = new HashThread(mFileCreator) ;
_hash_thread->start() ;
_hash_thread->start("ft hash") ;
#ifdef FT_DEBUG
std::cerr << "ftTransferModule::checkFile(): launched hashing thread for file " << mHash << std::endl ;
#endif

View File

@ -265,7 +265,7 @@ void RsGenExchange::tick()
else
{
mIntegrityCheck = new RsGxsIntegrityCheck(mDataStore,mGixs);
mIntegrityCheck->start();
mIntegrityCheck->start("gxs integrity");
mChecking = true;
}
}

View File

@ -130,7 +130,7 @@ AuthGPG::AuthGPG(const std::string& path_to_public_keyring,const std::string& pa
{
_force_sync_database = false ;
mCount = 0;
start();
start("AuthGPG");
}
/* This function is called when retroshare is first started

View File

@ -1834,7 +1834,7 @@ int RsServer::StartupRetroShare()
}
/* Startup this thread! */
start() ;
start("RsServer main") ;
return 1;
}

View File

@ -88,7 +88,7 @@ namespace resource_api {
TerminalApiClient::TerminalApiClient(ApiServer *api):
mApiServer(api)
{
start();
start("resapi terminal");
}
TerminalApiClient::~TerminalApiClient()