projects
/
folly.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
in thread pools, take factory as shared ptr
[folly.git]
/
folly
/
experimental
/
wangle
/
concurrent
/
ThreadPoolExecutor.cpp
diff --git
a/folly/experimental/wangle/concurrent/ThreadPoolExecutor.cpp
b/folly/experimental/wangle/concurrent/ThreadPoolExecutor.cpp
index d8ddfac15e4c419e9904fa62bd88f43ee4bb808e..5924f736051b70ab4ccc815fd0101281970495fe 100644
(file)
--- a/
folly/experimental/wangle/concurrent/ThreadPoolExecutor.cpp
+++ b/
folly/experimental/wangle/concurrent/ThreadPoolExecutor.cpp
@@
-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() {