mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 14:38:29 +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 <util/readwritefile.h>
|
||||
#include <util/strencodings.h>
|
||||
#include <util/system.h>
|
||||
#include <util/thread.h>
|
||||
#include <util/time.h>
|
||||
|
||||
#include <deque>
|
||||
@@ -596,7 +597,7 @@ void StartTorControl(CService onion_service_target)
|
||||
return;
|
||||
}
|
||||
|
||||
torControlThread = std::thread(&TraceThread<std::function<void()>>, "torcontrol", [onion_service_target] {
|
||||
torControlThread = std::thread(&util::TraceThread, "torcontrol", [onion_service_target] {
|
||||
TorControlThread(onion_service_target);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user