Thread Observer
authorDave Watson <davejwatson@fb.com>
Tue, 6 Jan 2015 18:36:31 +0000 (10:36 -0800)
committerViswanath Sivakumar <viswanath@fb.com>
Tue, 13 Jan 2015 19:01:04 +0000 (11:01 -0800)
commit9009c2b491bdc8bcfe8eab37d688063242006c83
treed914d4e1585e99d67bf46369a95f83c42492df89
parentc9a5ee23ec30da98cbe42da6d2eb47c65727cac7
Thread Observer

Summary: Observer methods, so users of IOThreadPoolExecutor can do stuff when threads are added/removed.  As a use case, previously the thrift server only used the threads already started when it started up, and assumed iothreadpool was never resized.

Test Plan: Added several unittests

Reviewed By: jsedgwick@fb.com

Subscribers: trunkagent, doug, fugalh, alandau, bmatheny, mshneer, folly-diffs@

FB internal diff: D1753861

Signature: t1:1753861:1420236825:54cbdfee0efb3b97dea35faba29c134f2b10a480
folly/wangle/concurrent/CPUThreadPoolExecutor.cpp
folly/wangle/concurrent/IOThreadPoolExecutor.cpp
folly/wangle/concurrent/IOThreadPoolExecutor.h
folly/wangle/concurrent/ThreadPoolExecutor.cpp
folly/wangle/concurrent/ThreadPoolExecutor.h
folly/wangle/concurrent/test/ThreadPoolExecutorTest.cpp