in thread pools, take factory as shared ptr
[folly.git] / folly / experimental / wangle / concurrent / ThreadPoolExecutor.cpp
index d8ddfac15e4c419e9904fa62bd88f43ee4bb808e..5924f736051b70ab4ccc815fd0101281970495fe 100644 (file)
@@ -20,7 +20,7 @@ namespace folly { namespace wangle {
 
 ThreadPoolExecutor::ThreadPoolExecutor(
     size_t numThreads,
-    std::unique_ptr<ThreadFactory> threadFactory)
+    std::shared_ptr<ThreadFactory> threadFactory)
     : threadFactory_(std::move(threadFactory)) {}
 
 ThreadPoolExecutor::~ThreadPoolExecutor() {