mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 23:18:14 +01:00
refactor: Make TraceThread a non-template free function
Also it is moved into its own module.
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user