Skip to content

Commit

Permalink
Prefix all bls/quorum threads with dash- (#2865)
Browse files Browse the repository at this point in the history
Makes it easier to find them. Note: had to s/quorum/q/ to fit into 15 characters.
  • Loading branch information
UdjinM6 committed Apr 15, 2019
1 parent 5e865f9 commit cff9f97
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/bls/bls_worker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion src/llmq/quorums.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ void CQuorum::StartCachePopulatorThread(std::shared_ptr<CQuorum> _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);
Expand Down
2 changes: 1 addition & 1 deletion src/llmq/quorums_dkgsessionhandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
}
Expand Down
2 changes: 1 addition & 1 deletion src/llmq/quorums_dkgsessionmgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ void CDKGSessionManager::StartMessageHandlerPool()
}

messageHandlerPool.resize(2);
RenameThreadPool(messageHandlerPool, "quorum-msg");
RenameThreadPool(messageHandlerPool, "dash-q-msg");
}

void CDKGSessionManager::StopMessageHandlerPool()
Expand Down

0 comments on commit cff9f97

Please sign in to comment.