Fix passing RequestContext to executor thread
authorAlex Landau <alandau@fb.com>
Wed, 24 Jun 2015 23:20:08 +0000 (16:20 -0700)
committerSara Golemon <sgolemon@fb.com>
Fri, 26 Jun 2015 18:45:41 +0000 (11:45 -0700)
commit6b6e6ae31c36422ef8bc6fabfb5394c16fc64ead
tree62970f8a828ca0d1f6386f5e91c7a2be2b73a083
parenta2206d8115d4ae508a45c5960425e858808ea869
Fix passing RequestContext to executor thread

Summary: If x->add() executes its lambda on a different thread and
doesn't pass the context on its own, the callback wouldn't
have the correct context set.

Reviewed By: @djwatson

Differential Revision: D2189318
folly/futures/detail/Core.h
folly/futures/test/FutureTest.cpp