diff options
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/threadnames.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/util/threadnames.cpp b/src/util/threadnames.cpp index ba074e30e0..0249de37e3 100644 --- a/src/util/threadnames.cpp +++ b/src/util/threadnames.cpp @@ -37,10 +37,6 @@ static void SetThreadName(const char* name) #endif } -// If we have thread_local, just keep thread ID and name in a thread_local -// global. -#if defined(HAVE_THREAD_LOCAL) - /** * The name of the thread. We use char array instead of std::string to avoid * complications with running a destructor when the thread exits. Avoid adding @@ -58,13 +54,6 @@ static void SetInternalName(const std::string& name) g_thread_name[copy_bytes] = '\0'; } -// Without thread_local available, don't handle internal name at all. -#else - -std::string util::ThreadGetInternalName() { return ""; } -static void SetInternalName(const std::string& name) { } -#endif - void util::ThreadRename(const std::string& name) { SetThreadName(("b-" + name).c_str()); |