diff options
Diffstat (limited to 'comphelper/source/misc/threadpool.cxx')
-rw-r--r-- | comphelper/source/misc/threadpool.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/comphelper/source/misc/threadpool.cxx b/comphelper/source/misc/threadpool.cxx index a916ba90f7bd..965a93c22e41 100644 --- a/comphelper/source/misc/threadpool.cxx +++ b/comphelper/source/misc/threadpool.cxx @@ -10,9 +10,9 @@ #include <comphelper/threadpool.hxx> #include <rtl/instance.hxx> -#include <boost/shared_ptr.hpp> -#include <thread> #include <algorithm> +#include <memory> +#include <thread> namespace comphelper { @@ -111,12 +111,12 @@ ThreadPool::~ThreadPool() waitAndCleanupWorkers(); } -struct ThreadPoolStatic : public rtl::StaticWithInit< boost::shared_ptr< ThreadPool >, +struct ThreadPoolStatic : public rtl::StaticWithInit< std::shared_ptr< ThreadPool >, ThreadPoolStatic > { - boost::shared_ptr< ThreadPool > operator () () { + std::shared_ptr< ThreadPool > operator () () { sal_Int32 nThreads = std::max( std::thread::hardware_concurrency(), 1U ); - return boost::shared_ptr< ThreadPool >( new ThreadPool( nThreads ) ); + return std::shared_ptr< ThreadPool >( new ThreadPool( nThreads ) ); }; }; |