From f16ee9709362f8943b03a5b90b73cd97da94d010 Mon Sep 17 00:00:00 2001 From: sehraf Date: Wed, 1 Jun 2016 16:18:19 +0200 Subject: [PATCH] add static thread names --- libresapi/src/api/RsControlModule.cpp | 2 +- libretroshare/src/ft/ftserver.cc | 8 ++++---- libretroshare/src/ft/fttransfermodule.cc | 2 +- libretroshare/src/gxs/rsgenexchange.cc | 2 +- libretroshare/src/pqi/authgpg.cc | 2 +- libretroshare/src/rsserver/rsinit.cc | 2 +- retroshare-nogui/src/TerminalApiClient.cpp | 2 +- 7 files changed, 10 insertions(+), 10 deletions(-) diff --git a/libresapi/src/api/RsControlModule.cpp b/libresapi/src/api/RsControlModule.cpp index 71848301e..35a41987a 100644 --- a/libresapi/src/api/RsControlModule.cpp +++ b/libresapi/src/api/RsControlModule.cpp @@ -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; diff --git a/libretroshare/src/ft/ftserver.cc b/libretroshare/src/ft/ftserver.cc index 4656fe4a5..adb60ffe2 100644 --- a/libretroshare/src/ft/ftserver.cc +++ b/libretroshare/src/ft/ftserver.cc @@ -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() diff --git a/libretroshare/src/ft/fttransfermodule.cc b/libretroshare/src/ft/fttransfermodule.cc index 12e275431..f5d5dfe84 100644 --- a/libretroshare/src/ft/fttransfermodule.cc +++ b/libretroshare/src/ft/fttransfermodule.cc @@ -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 diff --git a/libretroshare/src/gxs/rsgenexchange.cc b/libretroshare/src/gxs/rsgenexchange.cc index 2f06786ec..6046428c5 100644 --- a/libretroshare/src/gxs/rsgenexchange.cc +++ b/libretroshare/src/gxs/rsgenexchange.cc @@ -265,7 +265,7 @@ void RsGenExchange::tick() else { mIntegrityCheck = new RsGxsIntegrityCheck(mDataStore,mGixs); - mIntegrityCheck->start(); + mIntegrityCheck->start("gxs integrity"); mChecking = true; } } diff --git a/libretroshare/src/pqi/authgpg.cc b/libretroshare/src/pqi/authgpg.cc index 9b88c459e..7caf8e401 100644 --- a/libretroshare/src/pqi/authgpg.cc +++ b/libretroshare/src/pqi/authgpg.cc @@ -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 diff --git a/libretroshare/src/rsserver/rsinit.cc b/libretroshare/src/rsserver/rsinit.cc index 352d4578f..4a640c4ad 100644 --- a/libretroshare/src/rsserver/rsinit.cc +++ b/libretroshare/src/rsserver/rsinit.cc @@ -1834,7 +1834,7 @@ int RsServer::StartupRetroShare() } /* Startup this thread! */ - start() ; + start("RsServer main") ; return 1; } diff --git a/retroshare-nogui/src/TerminalApiClient.cpp b/retroshare-nogui/src/TerminalApiClient.cpp index f07abe162..6822004b4 100644 --- a/retroshare-nogui/src/TerminalApiClient.cpp +++ b/retroshare-nogui/src/TerminalApiClient.cpp @@ -88,7 +88,7 @@ namespace resource_api { TerminalApiClient::TerminalApiClient(ApiServer *api): mApiServer(api) { - start(); + start("resapi terminal"); } TerminalApiClient::~TerminalApiClient()