From cff9f97179d33b778da0037c423231830c59e806 Mon Sep 17 00:00:00 2001 From: UdjinM6 Date: Mon, 15 Apr 2019 17:42:43 +0300 Subject: [PATCH] Prefix all bls/quorum threads with `dash-` (#2865) Makes it easier to find them. Note: had to s/quorum/q/ to fit into 15 characters. --- src/bls/bls_worker.cpp | 2 +- src/llmq/quorums.cpp | 2 +- src/llmq/quorums_dkgsessionhandler.cpp | 2 +- src/llmq/quorums_dkgsessionmgr.cpp | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/bls/bls_worker.cpp b/src/bls/bls_worker.cpp index ab286919f75dd..c87d5c89a3e86 100644 --- a/src/bls/bls_worker.cpp +++ b/src/bls/bls_worker.cpp @@ -63,7 +63,7 @@ void CBLSWorker::Start() int workerCount = std::thread::hardware_concurrency() / 2; workerCount = std::max(std::min(1, workerCount), 4); workerPool.resize(workerCount); - RenameThreadPool(workerPool, "bls-worker"); + RenameThreadPool(workerPool, "dash-bls-worker"); } void CBLSWorker::Stop() diff --git a/src/llmq/quorums.cpp b/src/llmq/quorums.cpp index f0f454f415c01..f22057a2e75c5 100644 --- a/src/llmq/quorums.cpp +++ b/src/llmq/quorums.cpp @@ -142,7 +142,7 @@ void CQuorum::StartCachePopulatorThread(std::shared_ptr _this) // this thread will exit after some time // when then later some other thread tries to get keys, it will be much faster _this->cachePopulatorThread = std::thread([_this, t]() { - RenameThread("quorum-cachepop"); + RenameThread("dash-q-cachepop"); for (size_t i = 0; i < _this->members.size() && !_this->stopCachePopulatorThread && !ShutdownRequested(); i++) { if (_this->qc.validMembers[i]) { _this->GetPubKeyShare(i); diff --git a/src/llmq/quorums_dkgsessionhandler.cpp b/src/llmq/quorums_dkgsessionhandler.cpp index d20c25862906b..50c9957059a34 100644 --- a/src/llmq/quorums_dkgsessionhandler.cpp +++ b/src/llmq/quorums_dkgsessionhandler.cpp @@ -95,7 +95,7 @@ CDKGSessionHandler::CDKGSessionHandler(const Consensus::LLMQParams& _params, ctp pendingPrematureCommitments((size_t)_params.size * 2) { phaseHandlerThread = std::thread([this] { - RenameThread(strprintf("quorum-phase-%d", (uint8_t)params.type).c_str()); + RenameThread(strprintf("dash-q-phase-%d", (uint8_t)params.type).c_str()); PhaseHandlerThread(); }); } diff --git a/src/llmq/quorums_dkgsessionmgr.cpp b/src/llmq/quorums_dkgsessionmgr.cpp index 173634e4e88cf..1e091817622f9 100644 --- a/src/llmq/quorums_dkgsessionmgr.cpp +++ b/src/llmq/quorums_dkgsessionmgr.cpp @@ -40,7 +40,7 @@ void CDKGSessionManager::StartMessageHandlerPool() } messageHandlerPool.resize(2); - RenameThreadPool(messageHandlerPool, "quorum-msg"); + RenameThreadPool(messageHandlerPool, "dash-q-msg"); } void CDKGSessionManager::StopMessageHandlerPool()