mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 06:28:31 +01:00
boost: drop boost threads from torcontrol
This commit is contained in:
@@ -731,7 +731,7 @@ void TorController::reconnect_cb(evutil_socket_t fd, short what, void *arg)
|
||||
|
||||
/****** Thread ********/
|
||||
static struct event_base *gBase;
|
||||
static boost::thread torControlThread;
|
||||
static std::thread torControlThread;
|
||||
|
||||
static void TorControlThread()
|
||||
{
|
||||
@@ -740,7 +740,7 @@ static void TorControlThread()
|
||||
event_base_dispatch(gBase);
|
||||
}
|
||||
|
||||
void StartTorControl(boost::thread_group& threadGroup, CScheduler& scheduler)
|
||||
void StartTorControl()
|
||||
{
|
||||
assert(!gBase);
|
||||
#ifdef WIN32
|
||||
@@ -754,7 +754,7 @@ void StartTorControl(boost::thread_group& threadGroup, CScheduler& scheduler)
|
||||
return;
|
||||
}
|
||||
|
||||
torControlThread = boost::thread(boost::bind(&TraceThread<void (*)()>, "torcontrol", &TorControlThread));
|
||||
torControlThread = std::thread(std::bind(&TraceThread<void (*)()>, "torcontrol", &TorControlThread));
|
||||
}
|
||||
|
||||
void InterruptTorControl()
|
||||
|
||||
Reference in New Issue
Block a user