aboutsummaryrefslogtreecommitdiff
path: root/src/util/threadnames.cpp
diff options
context:
space:
mode:
authormerge-script <fanquake@gmail.com>2024-05-21 21:14:30 +0100
committermerge-script <fanquake@gmail.com>2024-05-21 21:14:30 +0100
commit2ec0a28a37dbb50d463899f53c28fb96905d97b7 (patch)
tree3cf8f4444d394df3e771d88a6ea97fd7d04f0cec /src/util/threadnames.cpp
parent6c13b1375f8fd810f46f5650e01a464ee63cfa46 (diff)
parent17fe948cce2eb75f0f3f4b0db9d0d90648c7d4af (diff)
downloadbitcoin-2ec0a28a37dbb50d463899f53c28fb96905d97b7.tar.xz
Merge bitcoin/bitcoin#30137: build: Remove `--enable-threadlocal`
17fe948cce2eb75f0f3f4b0db9d0d90648c7d4af build: remove --enable-threadlocal (fanquake) 1e7c20bc19a216269c646177ab90cfa084c096a5 doc: remove comment about using thread_local (fanquake) 5bba43312c0ceccfe18bd4d086e12ec0497ed926 build: Enable `thread_local` for MinGW-w64 builds (Hennadii Stepanov) Pull request description: Includes a commit from #30099. Closes #29952. ACKs for top commit: laanwj: Code review ACK 17fe948cce2eb75f0f3f4b0db9d0d90648c7d4af maflcko: utACK 17fe948cce2eb75f0f3f4b0db9d0d90648c7d4af hebasto: ACK 17fe948cce2eb75f0f3f4b0db9d0d90648c7d4af. theuni: utACK 17fe948cce2eb75f0f3f4b0db9d0d90648c7d4af Tree-SHA512: 2aad6d19e79c4d6d7aefd0f41b215ac8d9320f5908808221d78e6ee1c77503832a02759bee2ad397e235b6739e22aca8dcf5c5ef8854deb8c697b18ac56a06da
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());