Fix bug with calling addTaskEager from another FiberManager
Summary: The current code is calling `runInMainContext` on the FiberManager that we're scheduling to, which will do nothing if we're calling it from another fiber manager. This will assume fiber stack as a main stack which is incorrect. This diff fixes it to call `folly::fibers::runInMainContext` that would properly call `runInMainContext` on the active FiberManager. Reviewed By: andriigrynenko Differential Revision: D25116215 fbshipit-source-id: 1d13f436a0599c077e7531dc1fe75f3a143e3478
Showing
Please register or sign in to comment