Set thread names for better debugging

This commit is contained in:
SChernykh
2025-03-13 11:19:58 +01:00
parent 37e8cc01cf
commit d1dd95d9c9
10 changed files with 59 additions and 0 deletions

View File

@@ -244,6 +244,7 @@ void RandomX_Hasher::set_seed(const hash& seed)
{
// Background doesn't work very well with xmrig mining on all cores
//make_thread_background();
set_thread_name("Dataset init");
randomx_init_dataset(m_dataset, m_cache[m_index], a, b - a);
});
}
@@ -426,6 +427,8 @@ void RandomX_Hasher_RPC::loop(void* data)
{
LOGINFO(1, "event loop started");
set_thread_name("RX hash RPC");
RandomX_Hasher_RPC* hasher = static_cast<RandomX_Hasher_RPC*>(data);
int err = uv_run(&hasher->m_loop, UV_RUN_DEFAULT);