MCPcopy Create free account
hub / github.com/bitcoinxt/bitcoinxt / RenameThread

Function RenameThread

src/util.cpp:743–757  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

741}
742
743void RenameThread(const char* name)
744{
745#if defined(PR_SET_NAME)
746 // Only the first 15 characters are used (16 - NUL terminator)
747 ::prctl(PR_SET_NAME, name, 0, 0, 0);
748#elif (defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__DragonFly__))
749 pthread_set_name_np(pthread_self(), name);
750
751#elif defined(MAC_OSX)
752 pthread_setname_np(name);
753#else
754 // Prevent warnings for unused parameters...
755 (void)name;
756#endif
757}
758
759void SetupEnvironment()
760{

Callers 8

ThreadHTTPFunction · 0.85
HTTPWorkQueueRunFunction · 0.85
BitcoinMinerFunction · 0.85
ShutdownFunction · 0.85
ThreadImportFunction · 0.85
TraceThreadFunction · 0.85
ThreadScriptCheckFunction · 0.85
ThreadFlushWalletDBFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected