aboutsummaryrefslogtreecommitdiff
path: root/src/index
diff options
context:
space:
mode:
authorHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2021-04-13 20:44:46 +0300
committerHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2021-04-25 12:28:44 +0300
commit30e44482152488a78f2c495798a75e6f553dc0c8 (patch)
tree3a23901c0ed8c22ebad5cf8451be272f72fd2989 /src/index
parenta1f0b8b62eb851c837a3618583b7c2fd4d12006c (diff)
downloadbitcoin-30e44482152488a78f2c495798a75e6f553dc0c8.tar.xz
refactor: Make TraceThread a non-template free function
Also it is moved into its own module.
Diffstat (limited to 'src/index')
-rw-r--r--src/index/base.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/index/base.cpp b/src/index/base.cpp
index 9e637c9c6f..88d5fbee1d 100644
--- a/src/index/base.cpp
+++ b/src/index/base.cpp
@@ -8,7 +8,7 @@
#include <node/ui_interface.h>
#include <shutdown.h>
#include <tinyformat.h>
-#include <util/system.h>
+#include <util/thread.h>
#include <util/translation.h>
#include <validation.h> // For g_chainman
#include <warnings.h>
@@ -349,7 +349,7 @@ void BaseIndex::Start()
return;
}
- m_thread_sync = std::thread(&TraceThread<std::function<void()>>, GetName(),
+ m_thread_sync = std::thread(&util::TraceThread, GetName(),
std::bind(&BaseIndex::ThreadSync, this));
}