Add internal mode for HHWheelTimer
authorAlan Frindell <afrind@fb.com>
Mon, 8 Jun 2015 16:37:42 +0000 (09:37 -0700)
committerSara Golemon <sgolemon@fb.com>
Tue, 9 Jun 2015 20:20:42 +0000 (13:20 -0700)
commit64699b9b34fb36d895bc2fac6effbd362976f402
tree48fde5106b39163922317aa81c1cedb46bce62c3
parentc768c3f46991ce01f0fb06b3e070d8cbf8b25884
Add internal mode for HHWheelTimer

Summary:
This allows an EventBase to exit loop() even if there are pending timeouts in the timer (make sure to cancelAll before deleting!)

Test Plan: Unit tests

Reviewed By: davejwatson@fb.com

Subscribers: doug, folly-diffs@, yfeldblum, chalfant

FB internal diff: D2111942

Signature: t1:2111942:1432934212:7ac1973bdbbfdbda714699ab373618399f29ef76
folly/io/async/HHWheelTimer.cpp
folly/io/async/HHWheelTimer.h