save/restore request context in future
authorDave Watson <davejwatson@fb.com>
Thu, 30 Oct 2014 23:16:56 +0000 (16:16 -0700)
committerPavlo Kushnir <pavlo@fb.com>
Sat, 8 Nov 2014 02:14:03 +0000 (18:14 -0800)
commit809da17c47ed3a16a086b6cbface7499e9886b35
tree386218e7b1893831c0bf92ddb4ab7a2f476cf368
parent4c010707c5aeeae6300a2931dc02c0a14e2e141a
save/restore request context in future

Summary:
Generic 'threadlocal' like object that follows async calls around.

Note: Finagle's futures do this also.  It is super useful.

Test Plan: I should write a unittest?

Reviewed By: haijunz@fb.com, hans@fb.com

Subscribers: trunkagent, dawidp, doug, fugalh, njormrod, folly-diffs@

FB internal diff: D1650843

Tasks: 4698780

Signature: t1:1650843:1414711295:c7439733680ab4903eb9c05dcf8bf52100bf3f07
folly/wangle/detail/Core.h
folly/wangle/test/FutureTest.cpp