From 2c00a613b22e381c8e0aa1bbb56614c0cb3db518 Mon Sep 17 00:00:00 2001 From: Steven Siloti Date: Sat, 30 Apr 2016 13:25:50 -0700 Subject: [PATCH] use unique_ptr to network_thread_pool --- include/libtorrent/aux_/session_impl.hpp | 2 +- src/session_impl.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/libtorrent/aux_/session_impl.hpp b/include/libtorrent/aux_/session_impl.hpp index a3755dc0e..c1994ca77 100644 --- a/include/libtorrent/aux_/session_impl.hpp +++ b/include/libtorrent/aux_/session_impl.hpp @@ -760,7 +760,7 @@ namespace libtorrent // a thread pool used for async_write_some calls, // to distribute its cost to multiple threads - std::vector > m_net_thread_pool; + std::vector> m_net_thread_pool; // the bandwidth manager is responsible for // handing out bandwidth to connections that diff --git a/src/session_impl.cpp b/src/session_impl.cpp index 60c6c9e27..aedbcb040 100644 --- a/src/session_impl.cpp +++ b/src/session_impl.cpp @@ -6083,7 +6083,7 @@ namespace aux { int num_pools = num_threads > 0 ? num_threads : 1; while (num_pools > m_net_thread_pool.size()) { - m_net_thread_pool.push_back(boost::make_shared()); + m_net_thread_pool.emplace_back(new network_thread_pool()); m_net_thread_pool.back()->set_num_threads(num_threads > 0 ? 1 : 0); }