src/WheelTimer.cpp
// cascades all vectors and executes all expired timer
cascades all vectors and executes all expired timer
cascades all vectors and executes all expired timer
int WheelTimer::tick()
{
    int fired = execute();
    int index = jiffies_ & TVR_MASK;
    if (index == 0) 
    {
        if (cascade(0, INDEX(0)) &&
            cascade(1, INDEX(1)) &&
            cascade(2, INDEX(2)))
            cascade(3, INDEX(3));
    }
#undef INDEX
    jiffies_++;
    fired += execute();
    return fired;
}
int WheelTimer :: tick ( ) { int fired = execute ( ) ; int index = jiffies_ & TVR_MASK ; if ( index == 0 ) { if ( cascade ( 0 , INDEX ( 0 ) ) && cascade ( 1 , INDEX ( 1 ) ) && cascade ( 2 , INDEX ( 2 ) ) ) cascade ( 3 , INDEX ( 3 ) ) ; } #undef  INDEX jiffies_ ++ ; fired += execute ( ) ; return fired ; }
cascades all vectors and executes all expired timer
cascades all vectors and executes all expired timer
// cascade timers