ITimingWheel.addNewTimer

add a Timer into the Wheel

class ITimingWheel(Allocator)
pragma(inline) nothrow
void
addNewTimer
(,
size_t wheel = 0
)

Parameters

tm WheelTimer

the timer. Notes: 如果对象是来自GC,而yuAlloctor 非GC,则注意需要把添加内存到GC扫描区

Meta