Skip to content

Commit

Permalink
Fix thread names to fit into 15 symbols (dashpay#3897)
Browse files Browse the repository at this point in the history
  • Loading branch information
UdjinM6 authored and Duddino committed Jan 14, 2025
1 parent 2f492d4 commit 595a672
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/bls/bls_worker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion src/llmq/quorums_chainlocks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -484,4 +484,4 @@ void CChainLocksHandler::Cleanup()
lastCleanupTime = GetTimeMillis();
}

}
}
2 changes: 1 addition & 1 deletion src/llmq/quorums_dkgsessionhandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<std::function<void()> >, threadName, std::function<void()>(std::bind(&CDKGSessionHandler::PhaseHandlerThread, this)));
}

Expand Down

0 comments on commit 595a672

Please sign in to comment.