(Wangle) Have Core own an FSM instead of inheriting
authorHannes Roth <hannesr@fb.com>
Fri, 13 Feb 2015 21:14:22 +0000 (13:14 -0800)
committerAlecs King <int@fb.com>
Tue, 3 Mar 2015 03:19:41 +0000 (19:19 -0800)
commit09430395fd7dea427c75af131b08bba8c5136535
tree310c0e906930d96d6cabf8e59d609e2fa9fa310f
parent96242018c6e9355fb083983c2118ff27ea182eba
(Wangle) Have Core own an FSM instead of inheriting

Summary:
This seems cleaner. I also moved a Core member around and changed state to be a smaller size to save us 16 bytes. Might be neat to try to get this down to 128?

Fixed compilation with GCC 4.9, too.

Test Plan: Ran all the tests. Will also benchmark.

Reviewed By: hans@fb.com

Subscribers: trunkagent, folly-diffs@, jsedgwick, yfeldblum

FB internal diff: D1843129

Signature: t1:1843129:1423789502:60e56d1af553994991195fcc350d37d644a556ca
folly/futures/Future-inl.h
folly/futures/detail/Core.h
folly/futures/detail/FSM.h
folly/futures/test/FSM.cpp
folly/futures/test/FutureTest.cpp