Track callback life cycle for HHWheelTimer and EventBase
authorShaft Wu <shaftwu@fb.com>
Tue, 27 Oct 2015 04:14:10 +0000 (21:14 -0700)
committerfacebook-github-bot-9 <folly-bot@fb.com>
Tue, 27 Oct 2015 05:20:23 +0000 (22:20 -0700)
commit47f0d3846c949a085da9dc3e33062b4537172edb
tree9366c4665e87049c0376a01e8a7af6e2897ad3a7
parent28c5ca589c26815b2393b35e6a2fc582f37f6453
Track callback life cycle for HHWheelTimer and EventBase

Summary: Further race is presented in HHWheelTimer and EventBase, since changing them to track callback life cycle is more involving, I am hacking around it to prove the concept. With the *fix*, no reproduce of the segmentation fault anymore.

This is for proving the concept, code will be cleaned up if we agree this is reasonable direction to pursue.

Reviewed By: fugalh

Differential Revision: D2577715

fb-gh-sync-id: e0bb0317268e6f02a54fc70454e63959fba70c10
folly/futures/ThreadWheelTimekeeper.cpp