• Juho Snellman's avatar
    Add a schedule_in_range method · 4b131b9e
    Juho Snellman authored
    - Schedules timer in optimized slot, within the provided range
      - If timeout is already in right range, do nothing.
      - If timer can be scheduled at a slot boundary such that it does
        not need to be promoted to another wheel, do that.
      - In general prefer scheduling as late in the range as possible.
    4b131b9e
timer-wheel.h 8.43 KB