Skip to content

Commit f596159

Browse files
UdjinM6gades
authored andcommitted
Fix thread names to fit into 15 symbols (dashpay#3897)
1 parent 5941e41 commit f596159

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/bls/bls_worker.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ void CBLSWorker::Start()
6464
int workerCount = std::thread::hardware_concurrency() / 2;
6565
workerCount = std::max(std::min(1, workerCount), 4);
6666
workerPool.resize(workerCount);
67-
RenameThreadPool(workerPool, "cosanta-bls-worker");
67+
RenameThreadPool(workerPool, "cosa-bls-work");
6868
}
6969

7070
void CBLSWorker::Stop()

src/llmq/quorums_chainlocks.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ CChainLocksHandler::CChainLocksHandler()
3636
{
3737
scheduler = new CScheduler();
3838
CScheduler::Function serviceLoop = boost::bind(&CScheduler::serviceQueue, scheduler);
39-
scheduler_thread = new boost::thread(boost::bind(&TraceThread<CScheduler::Function>, "cl-scheduler", serviceLoop));
39+
scheduler_thread = new boost::thread(boost::bind(&TraceThread<CScheduler::Function>, "cl-schdlr", serviceLoop));
4040
}
4141

4242
CChainLocksHandler::~CChainLocksHandler()

src/llmq/quorums_dkgsessionhandler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ void CDKGSessionHandler::StartThread()
142142
throw std::runtime_error("Tried to start an already started CDKGSessionHandler thread.");
143143
}
144144

145-
std::string threadName = strprintf("q-phase-%d", (uint8_t)params.type);
145+
std::string threadName = strprintf("llmq-%d", (uint8_t)params.type);
146146
phaseHandlerThread = std::thread(&TraceThread<std::function<void()> >, threadName, std::function<void()>(std::bind(&CDKGSessionHandler::PhaseHandlerThread, this)));
147147
}
148148

src/llmq/quorums_instantsend.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ void CInstantSendManager::Start()
384384
assert(false);
385385
}
386386

387-
workThread = std::thread(&TraceThread<std::function<void()> >, "instantsend", std::function<void()>(std::bind(&CInstantSendManager::WorkThreadMain, this)));
387+
workThread = std::thread(&TraceThread<std::function<void()> >, "isman", std::function<void()>(std::bind(&CInstantSendManager::WorkThreadMain, this)));
388388

389389
quorumSigningManager->RegisterRecoveredSigsListener(this);
390390
}

0 commit comments

Comments
 (0)