src/WheelTimer.cpp
// cascade all the timers at bucket of index up one level
cascade all the timers at bucket of index up one level
cascade all the timers at bucket of index up one level
bool WheelTimer::cascade(int bucket, int index)
{
    if (bucket >= WHEEL_BUCKETS)
        return false;
    WheelList list = std::move(buckets_[bucket][index]);
    for (auto node : list)
    {
        if (node->id > 0)
        {
            addTimerNode(node);
        }
    }
    return index == 0;
}
bool WheelTimer :: cascade ( int bucket , int index ) { if ( bucket >= WHEEL_BUCKETS ) return false ; WheelList list = std :: move ( buckets_ [ bucket ] [ index ] ) ; for ( auto node : list ) { if ( node -> id > 0 ) { addTimerNode ( node ) ; } } return index == 0 ; }
cascade all the timers at bucket of index up one level
cascade all the timers at bucket of index up one level
// swap list