From 17fe948cce2eb75f0f3f4b0db9d0d90648c7d4af Mon Sep 17 00:00:00 2001 From: fanquake Date: Sat, 18 May 2024 10:59:55 +0800 Subject: build: remove --enable-threadlocal --- src/util/threadnames.cpp | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'src/util/threadnames.cpp') 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()); -- cgit v1.2.3