future / fiber integration
authorDave Watson <davejwatson@fb.com>
Wed, 22 Apr 2015 16:02:38 +0000 (09:02 -0700)
committerAlecs King <int@fb.com>
Mon, 27 Apr 2015 23:50:03 +0000 (16:50 -0700)
commit75aef07cbbc9112459c8b2a5b6ee4fdf6b2229ab
tree0ec876905a6b7f94750b17da5576d1c4f5c0beb0
parent312e745415d022744f0c464e7ab20643338fd17b
future / fiber integration

Summary:
make future::wait() use fiber's baton, so wait works in threads or in fibers.

Much cleaner than making a new FiberRequest type in thrift

Test Plan: tests

Reviewed By: andrii@fb.com

Subscribers: doug, alandau, bmatheny, mshneer, andrii, folly-diffs@, yitingli, yfeldblum, jsedgwick, chalfant

FB internal diff: D1996283

Signature: t1:1996283:1429144165:da5dc6b1f2a053a45efd39877e79169e3fba810c
folly/futures/Future-inl.h
folly/futures/test/FutureTest.cpp