RequestContext support
authorAndrii Grynenko <andrii@fb.com>
Tue, 14 Jul 2015 17:29:36 +0000 (10:29 -0700)
committerSara Golemon <sgolemon@fb.com>
Wed, 15 Jul 2015 20:25:11 +0000 (13:25 -0700)
commitcc671d294c2d51022348ec684109c7d11742ab50
tree4d3030822aa544f9dbe35199c2b81de1d809562d
parent5016d8c7b803f8c0a312198e2635091ebe52f159
RequestContext support

Summary: Integrating RequestContext into fibers library. RequestContext is saved for every task, when that task is created. If RequestContext is overriden when a task is being run (within fiber, in runInMainContext, within function passed to await call) the new context will continue to be used for the task.

Reviewed By: @alikhtarov

Differential Revision: D2240152
folly/experimental/fibers/Fiber.h
folly/experimental/fibers/FiberManager-inl.h
folly/experimental/fibers/FiberManager.h
folly/experimental/fibers/test/FibersTest.cpp