merge wangle/Executor.h and experimental/wangle/concurrent/Executor.h
authorJames Sedgwick <jsedgwick@fb.com>
Wed, 15 Oct 2014 22:57:47 +0000 (15:57 -0700)
committerdcsommer <dcsommer@fb.com>
Fri, 17 Oct 2014 18:43:58 +0000 (11:43 -0700)
commitea078b876b76faed4ba1585a3197bd94c54ec261
tree57a86b34a38d800105eea1aaf7b8ca675ab6872a
parente5e3fde0cc5e35b87bec8714b0a7e6987a3d3975
merge wangle/Executor.h and experimental/wangle/concurrent/Executor.h

Summary:
the one in concurrent/ is a bit more generic, so I kept that as Executor and renamed the existing one ScheduledExecutor

because Hans is surfing I took the liberty of renaming Action->Func as an alias for std::function<void()>, because I think it's more reflective
also kept the version of add() that doesn't force rvalue-reference as it's more user friendly and probably not less performant in common cases (insert reference to "want speed? pass by value" here)

Test Plan: compiled some major relevant bits, will let contbuild show me anything I missed

Reviewed By: hans@fb.com

Subscribers: trunkagent, rushix, fbcode-common-diffs@, fugalh, msk, njormrod

FB internal diff: D1591237

Tasks: 5279196
folly/experimental/wangle/concurrent/Executor.h [deleted file]
folly/experimental/wangle/concurrent/ThreadFactory.h
folly/experimental/wangle/concurrent/ThreadPoolExecutor.h
folly/wangle/Executor.h
folly/wangle/InlineExecutor.h
folly/wangle/ManualExecutor.cpp
folly/wangle/ManualExecutor.h
folly/wangle/QueuedImmediateExecutor.cpp
folly/wangle/QueuedImmediateExecutor.h
folly/wangle/ScheduledExecutor.h [new file with mode: 0644]