aboutsummaryrefslogtreecommitdiff
path: root/src/util/threadnames.cpp
diff options
context:
space:
mode:
authorfanquake <fanquake@gmail.com>2024-05-18 10:59:55 +0800
committerfanquake <fanquake@gmail.com>2024-05-21 10:29:51 +0100
commit17fe948cce2eb75f0f3f4b0db9d0d90648c7d4af (patch)
tree08ae5f10fd8a883e68fd48f6b73590d99179a527 /src/util/threadnames.cpp
parent1e7c20bc19a216269c646177ab90cfa084c096a5 (diff)
downloadbitcoin-17fe948cce2eb75f0f3f4b0db9d0d90648c7d4af.tar.xz
build: remove --enable-threadlocal
Diffstat (limited to 'src/util/threadnames.cpp')
-rw-r--r--src/util/threadnames.cpp11
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());