mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-25 15:39:27 -05:00
add static thread names
This commit is contained in:
parent
5b67654530
commit
f16ee97093
@ -30,7 +30,7 @@ RsControlModule::RsControlModule(int argc, char **argv, StateTokenServer* sts, A
|
|||||||
this->argv = argv;
|
this->argv = argv;
|
||||||
// start worker thread
|
// start worker thread
|
||||||
if(full_control)
|
if(full_control)
|
||||||
start("RS ctrl module");
|
start("resapi ctrl mod");
|
||||||
else
|
else
|
||||||
mRunState = RUNNING_OK_NO_FULL_CONTROL;
|
mRunState = RUNNING_OK_NO_FULL_CONTROL;
|
||||||
|
|
||||||
|
@ -188,18 +188,18 @@ void ftServer::StartupThreads()
|
|||||||
|
|
||||||
/* self contained threads */
|
/* self contained threads */
|
||||||
/* startup ExtraList Thread */
|
/* startup ExtraList Thread */
|
||||||
mFtExtra->start("RS ft extra lst");
|
mFtExtra->start("ft extra lst");
|
||||||
|
|
||||||
/* startup Monitor Thread */
|
/* startup Monitor Thread */
|
||||||
/* startup the FileMonitor (after cache load) */
|
/* startup the FileMonitor (after cache load) */
|
||||||
/* start it up */
|
/* start it up */
|
||||||
mFiMon->start("RS ft monitor");
|
mFiMon->start("ft monitor");
|
||||||
|
|
||||||
/* Controller thread */
|
/* Controller thread */
|
||||||
mFtController->start("RS ft ctrl");
|
mFtController->start("ft ctrl");
|
||||||
|
|
||||||
/* Dataplex */
|
/* Dataplex */
|
||||||
mFtDataplex->start("RS ft dataplex");
|
mFtDataplex->start("ft dataplex");
|
||||||
}
|
}
|
||||||
|
|
||||||
void ftServer::StopThreads()
|
void ftServer::StopThreads()
|
||||||
|
@ -592,7 +592,7 @@ bool ftTransferModule::checkFile()
|
|||||||
// Note: using new is really important to avoid copy and write errors in the thread.
|
// Note: using new is really important to avoid copy and write errors in the thread.
|
||||||
//
|
//
|
||||||
_hash_thread = new HashThread(mFileCreator) ;
|
_hash_thread = new HashThread(mFileCreator) ;
|
||||||
_hash_thread->start() ;
|
_hash_thread->start("ft hash") ;
|
||||||
#ifdef FT_DEBUG
|
#ifdef FT_DEBUG
|
||||||
std::cerr << "ftTransferModule::checkFile(): launched hashing thread for file " << mHash << std::endl ;
|
std::cerr << "ftTransferModule::checkFile(): launched hashing thread for file " << mHash << std::endl ;
|
||||||
#endif
|
#endif
|
||||||
|
@ -265,7 +265,7 @@ void RsGenExchange::tick()
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
mIntegrityCheck = new RsGxsIntegrityCheck(mDataStore,mGixs);
|
mIntegrityCheck = new RsGxsIntegrityCheck(mDataStore,mGixs);
|
||||||
mIntegrityCheck->start();
|
mIntegrityCheck->start("gxs integrity");
|
||||||
mChecking = true;
|
mChecking = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -130,7 +130,7 @@ AuthGPG::AuthGPG(const std::string& path_to_public_keyring,const std::string& pa
|
|||||||
{
|
{
|
||||||
_force_sync_database = false ;
|
_force_sync_database = false ;
|
||||||
mCount = 0;
|
mCount = 0;
|
||||||
start();
|
start("AuthGPG");
|
||||||
}
|
}
|
||||||
|
|
||||||
/* This function is called when retroshare is first started
|
/* This function is called when retroshare is first started
|
||||||
|
@ -1834,7 +1834,7 @@ int RsServer::StartupRetroShare()
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Startup this thread! */
|
/* Startup this thread! */
|
||||||
start() ;
|
start("RsServer main") ;
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
@ -88,7 +88,7 @@ namespace resource_api {
|
|||||||
TerminalApiClient::TerminalApiClient(ApiServer *api):
|
TerminalApiClient::TerminalApiClient(ApiServer *api):
|
||||||
mApiServer(api)
|
mApiServer(api)
|
||||||
{
|
{
|
||||||
start();
|
start("resapi terminal");
|
||||||
}
|
}
|
||||||
|
|
||||||
TerminalApiClient::~TerminalApiClient()
|
TerminalApiClient::~TerminalApiClient()
|
||||||
|
Loading…
Reference in New Issue
Block a user