mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-08-24 18:51:30 +02:00
util: Make thread names shorter
Thread names at the process level are limited by 15 characters. This commit ensures that name 'b-httpworker.42' will not be cropped.
This commit is contained in:
@@ -57,6 +57,6 @@ static void SetInternalName(std::string name) { }
|
|||||||
|
|
||||||
void util::ThreadRename(std::string&& name)
|
void util::ThreadRename(std::string&& name)
|
||||||
{
|
{
|
||||||
SetThreadName(("bitcoin-" + name).c_str());
|
SetThreadName(("b-" + name).c_str());
|
||||||
SetInternalName(std::move(name));
|
SetInternalName(std::move(name));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user