fix cancelAllFunctions
authorTaiyuan Zhang <taiyuanz@fb.com>
Thu, 21 Apr 2016 22:42:26 +0000 (15:42 -0700)
committerFacebook Github Bot 2 <facebook-github-bot-2-bot@fb.com>
Thu, 21 Apr 2016 22:50:24 +0000 (15:50 -0700)
commitba7c9b403a6a3978ff4a186246f7ee1434ca77b3
tree2f0e704203b2b0dcdee09b4148be6c2ae5c1f4e2
parente9a22fbd87bf29009c19e2e6a2383026a4c86a93
fix cancelAllFunctions

Summary: as titled. When I tried re-adding all functions after cancelAllFunctions, it throws error. This is because it doesn't reset currentFunction to null.

Reviewed By: jjs0

Differential Revision: D3209237

fb-gh-sync-id: 5b6e2d967fc3c0986320d23b8d61eb1bfbff8940
fbshipit-source-id: 5b6e2d967fc3c0986320d23b8d61eb1bfbff8940
folly/experimental/FunctionScheduler.cpp