public:
explicit ThreadPoolExecutor(
size_t numThreads,
- std::unique_ptr<ThreadFactory> threadFactory);
+ std::shared_ptr<ThreadFactory> threadFactory);
~ThreadPoolExecutor();
std::queue<ThreadPtr> queue_;
};
- std::unique_ptr<ThreadFactory> threadFactory_;
+ std::shared_ptr<ThreadFactory> threadFactory_;
ThreadList threadList_;
RWSpinLock threadListLock_;
StoppedThreadQueue stoppedThreads_;