Have EventBase implement wangle::Executor
authorHans Fugal <fugalh@fb.com>
Wed, 12 Nov 2014 18:01:50 +0000 (10:01 -0800)
committerDave Watson <davejwatson@fb.com>
Wed, 19 Nov 2014 20:52:20 +0000 (12:52 -0800)
commitf22220e57b6df810439325e718682eb7c2800a99
treeea967d95e86f32130db4f9a419f9ccab68a1452a
parent3c34f066eafa40417cfd756efd87116e4b65f294
Have EventBase implement wangle::Executor

Summary:
It already does the work (`runInEventBaseThread`) but it will now be convenient to pass an `EventBase` where wangle wants an `Executor`.

Had to rip off the `boost::noncopyable` from `wangle::Executor` which is an interface and does not require non-copyability so that didn't really belong there in the first place I think. (Without this change, you get an obscure compiler error because of the double-inheritance from `boost::noncopyable`).

Test Plan: Things build, tests pass

Reviewed By: davejwatson@fb.com

Subscribers: jsedgwick, trunkagent, fugalh, exa, njormrod, folly-diffs@, andrii

FB internal diff: D1671500

Signature: t1:1671500:1415727572:a7dba33c669ca122aecaee3c700f9e53e54838d1
folly/io/async/EventBase.h
folly/wangle/Executor.h