remove constant tick
authorDave Watson <davejwatson@fb.com>
Thu, 18 Aug 2016 15:38:21 +0000 (08:38 -0700)
committerFacebook Github Bot <facebook-github-bot-bot@fb.com>
Thu, 18 Aug 2016 15:53:30 +0000 (08:53 -0700)
commit9880573b49ab0e36b1d110b5530d4d8f2b56ecfa
tree53eb06c7a069613de9855aa25c2ef62521e0fcb3
parent7e7a7df7bff73f2051e30f782380d32e2728723c
remove constant tick

Summary:
Preciesly calculate the next tick.  Currently only calculates the tick based on the lowest level of wheel timer, so it will still tick at least every WHEEL_SIZE intervals.

Currently the tick calculation is a linear scan over all the buckets, the next diff will optimize this.

Reviewed By: yfeldblum

Differential Revision: D3637096

fbshipit-source-id: 53dd596a2085c05c657cccbc7efba267bbd086a6
folly/io/async/HHWheelTimer.cpp
folly/io/async/HHWheelTimer.h
folly/io/async/test/HHWheelTimerSlowTests.cpp