in thread pools, take factory as shared ptr
authorJames Sedgwick <jsedgwick@fb.com>
Wed, 1 Oct 2014 17:55:34 +0000 (10:55 -0700)
committerAndrii Grynenko <andrii@fb.com>
Wed, 15 Oct 2014 00:47:09 +0000 (17:47 -0700)
commitedbdc3d4f05788eb41eb9719bfeb113e0a1ea52d
treee64c4ed107b54b88399356d5bfc9c7e4e2bb1748
parentca5fc3666621fbfe0ce1211e32ebe5f646e9af0c
in thread pools, take factory as shared ptr

Summary: needed for thrift server. if you have some sort of stateful/functional factory and you want to hold on to it, you should be allowed to

Test Plan: compiles with forthcoming thrift diff

Reviewed By: davejwatson@fb.com

Subscribers: trunkagent, fugalh, njormrod

FB internal diff: D1584587
folly/experimental/wangle/concurrent/CPUThreadPoolExecutor.cpp
folly/experimental/wangle/concurrent/CPUThreadPoolExecutor.h
folly/experimental/wangle/concurrent/IOThreadPoolExecutor.cpp
folly/experimental/wangle/concurrent/IOThreadPoolExecutor.h
folly/experimental/wangle/concurrent/ThreadPoolExecutor.cpp
folly/experimental/wangle/concurrent/ThreadPoolExecutor.h