diff options
author | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2021-04-13 20:44:46 +0300 |
---|---|---|
committer | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2021-04-25 12:28:44 +0300 |
commit | 30e44482152488a78f2c495798a75e6f553dc0c8 (patch) | |
tree | 3a23901c0ed8c22ebad5cf8451be272f72fd2989 /src/mapport.cpp | |
parent | a1f0b8b62eb851c837a3618583b7c2fd4d12006c (diff) |
refactor: Make TraceThread a non-template free function
Also it is moved into its own module.
Diffstat (limited to 'src/mapport.cpp')
-rw-r--r-- | src/mapport.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mapport.cpp b/src/mapport.cpp index 2df4ce45d2..315c4b525f 100644 --- a/src/mapport.cpp +++ b/src/mapport.cpp @@ -15,6 +15,7 @@ #include <netbase.h> #include <threadinterrupt.h> #include <util/system.h> +#include <util/thread.h> #ifdef USE_NATPMP #include <compat.h> @@ -255,7 +256,7 @@ void StartThreadMapPort() { if (!g_mapport_thread.joinable()) { assert(!g_mapport_interrupt); - g_mapport_thread = std::thread(std::bind(&TraceThread<void (*)()>, "mapport", &ThreadMapPort)); + g_mapport_thread = std::thread(std::bind(&util::TraceThread, "mapport", &ThreadMapPort)); } } |