expose FunctionScheduler::addFunction() with a custom distribution
authorAdam Simpkins <simpkins@fb.com>
Tue, 12 May 2015 01:32:56 +0000 (18:32 -0700)
committerViswanath Sivakumar <viswanath@fb.com>
Wed, 20 May 2015 17:56:53 +0000 (10:56 -0700)
commitf099d2b48d75cb98f21e62b5dfca344c96588ffe
treefd105da0e5f046b45ee5c00bc73329edd1f641d5
parent6d88461ace59daf1fa06e54e2240b5521bd1e639
expose FunctionScheduler::addFunction() with a custom distribution

Summary:
Make addFunctionInternal() publicly available, as an overloaded version of
addFunction().  This allows users to add functions with a specified poisson
distribution.

This allows us to deprecate our internal legacy version of FunctionScheduler,
and replace it with the folly version.

Test Plan: Confirmed all unit tests still pass.

Reviewed By: ldbrandy@fb.com

Subscribers: jwatzman, doug, net-systems@, exa, folly-diffs@, yfeldblum, chalfant

FB internal diff: D2051699

Signature: t1:2051699:1431379841:f3547d1ed371503b0bf91b509a4ef03e881aa991
folly/experimental/FunctionScheduler.cpp
folly/experimental/FunctionScheduler.h