From cc6ee9b036c66fe1c1488a15c1aa315ebe0d68b3 Mon Sep 17 00:00:00 2001 From: UdjinM6 Date: Wed, 30 Dec 2020 22:33:45 +0300 Subject: [PATCH] Fix thread names to fit into 15 symbols (https://github.com/dashpay/dash/pull/3897) --- src/bls/bls_worker.cpp | 3 +-- src/llmq/quorums_chainlocks.cpp | 2 +- src/llmq/quorums_dkgsessionhandler.cpp | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/bls/bls_worker.cpp b/src/bls/bls_worker.cpp index a90bc93eaf58b0..379b3642f2acdf 100644 --- a/src/bls/bls_worker.cpp +++ b/src/bls/bls_worker.cpp @@ -65,8 +65,7 @@ void CBLSWorker::Start() int workerCount = GetNumCores() / 2; workerCount = std::max(std::min(1, workerCount), 4); workerPool.resize(workerCount); - - RenameThreadPool(workerPool, "pivx-bls-worker"); + RenameThreadPool(workerPool, "pivx-bls-work"); } void CBLSWorker::Stop() diff --git a/src/llmq/quorums_chainlocks.cpp b/src/llmq/quorums_chainlocks.cpp index 85ee5ff59dc706..8d17b27157968f 100644 --- a/src/llmq/quorums_chainlocks.cpp +++ b/src/llmq/quorums_chainlocks.cpp @@ -37,7 +37,7 @@ CChainLocksHandler::CChainLocksHandler() { scheduler = new CScheduler(); CScheduler::Function serviceLoop = boost::bind(&CScheduler::serviceQueue, scheduler); - scheduler_thread = new boost::thread(boost::bind(&TraceThread, "cl-scheduler", serviceLoop)); + scheduler_thread = new boost::thread(boost::bind(&TraceThread, "cl-schdlr", serviceLoop)); } CChainLocksHandler::~CChainLocksHandler() diff --git a/src/llmq/quorums_dkgsessionhandler.cpp b/src/llmq/quorums_dkgsessionhandler.cpp index e105c177fb58fb..9efca8a0dfc4a9 100644 --- a/src/llmq/quorums_dkgsessionhandler.cpp +++ b/src/llmq/quorums_dkgsessionhandler.cpp @@ -147,7 +147,7 @@ void CDKGSessionHandler::StartThread() throw std::runtime_error("Tried to start an already started CDKGSessionHandler thread."); } - std::string threadName = strprintf("quorum-phase-%d", params.type); + std::string threadName = strprintf("llmq-%d", (uint8_t)params.type); phaseHandlerThread = std::thread(&TraceThread >, threadName, std::function(std::bind(&CDKGSessionHandler::PhaseHandlerThread, this))); }