Add ctor to CPUThreadPoolExecutor to enable custom queue sizes
authorMatt Dordal <mnd@fb.com>
Fri, 13 Mar 2015 17:44:08 +0000 (10:44 -0700)
committerAndre Azevedo <aap@fb.com>
Wed, 18 Mar 2015 03:18:45 +0000 (20:18 -0700)
commitaae7c5b3cd843fcd57cedf2558204c7c994353e8
treeec123362651b8bece571af33aa61d536eec21c71
parent383ffb3428e8b4f4963b7711b6ecd7ed4a17c228
Add ctor to CPUThreadPoolExecutor to enable custom queue sizes

Summary:
Seems useful to do without passing in a totally custom queue. Makes
the client code a bit simpler.

Test Plan: used it, saw low memory usage and no crash

Reviewed By: davejwatson@fb.com

Subscribers: trunkagent, iaroslav, fugalh, folly-diffs@, jsedgwick, yfeldblum, slarsen

FB internal diff: D1907874

Signature: t1:1907874:1426268010:3159ae339b51f5dbc7fe034644bbc968b92b072c
folly/wangle/concurrent/CPUThreadPoolExecutor.cpp
folly/wangle/concurrent/CPUThreadPoolExecutor.h