Support nested FiberManagers
authorAndrii Grynenko <andrii@fb.com>
Sat, 20 Feb 2016 00:13:42 +0000 (16:13 -0800)
committerfacebook-github-bot-0 <folly-bot@fb.com>
Sat, 20 Feb 2016 01:20:26 +0000 (17:20 -0800)
commit743a0b4850d9b4f6c72ee0427ffcfa30e2f53459
tree9f3485c0b58a13331bdb2d6d8a3cd8da378c1c6a
parent95ade4c9ccc4e31f5fbe094ac0702207045023a9
Support nested FiberManagers

Summary:It's possible to have nested loopUntilNoReady (with different FiberManagers). See unit test for a simple example.
This diff fixes currentFiberManager_ to be a stack.

Reviewed By: meyering

Differential Revision: D2953468

fb-gh-sync-id: 0abdcb7f43c94e7bb0adef8440699dc8e138d21a
shipit-source-id: 0abdcb7f43c94e7bb0adef8440699dc8e138d21a
folly/experimental/fibers/FiberManager-inl.h
folly/experimental/fibers/test/FibersTest.cpp