AddTimeWheel 给一个时间轮添加下层时间轮 比如给小时时间轮添加分钟时间轮,给分钟时间轮添加秒时间轮
(next *TimeWheel)
| 151 | |
| 152 | // AddTimeWheel 给一个时间轮添加下层时间轮 比如给小时时间轮添加分钟时间轮,给分钟时间轮添加秒时间轮 |
| 153 | func (tw *TimeWheel) AddTimeWheel(next *TimeWheel) { |
| 154 | tw.nextTimeWheel = next |
| 155 | zlog.Ins().InfoF("Add timerWhell[%s]'s next [%s] is succ!", tw.name, next.name) |
| 156 | } |
| 157 | |
| 158 | /* |
| 159 | 启动时间轮 |