Changeset View
Changeset View
Standalone View
Standalone View
src/util/threadnames.cpp
Show All 40 Lines | |||||
} | } | ||||
//! Set the in-memory internal name for this thread. Does not affect the process | //! Set the in-memory internal name for this thread. Does not affect the process | ||||
//! name. | //! name. | ||||
static void SetInternalName(std::string name) { | static void SetInternalName(std::string name) { | ||||
g_thread_name = std::move(name); | g_thread_name = std::move(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)); | ||||
} | } |