ITimingWheel

Timing Wheel manger Class

Constructors

this
this(uint wheelSize)

constructor

this
this(uint wheelSize, Allocator alloc)
Undocumented in source.

Destructor

~this
~this()
Undocumented in source.

Members

Aliases

NullWheelTimer
alias NullWheelTimer = INullWheelTimer!Allocator
Undocumented in source.
WheelTimer
alias WheelTimer = IWheelTimer!Allocator
Undocumented in source.

Functions

addGcScan
void addGcScan()
Undocumented in source. Be warned that the author may not have intended to support it.
addNewTimer
void addNewTimer(WheelTimer tm, size_t wheel)

add a Timer into the Wheel

doNext
NullWheelTimer doNext()

go forward a element,and return the element.

getPrev
size_t getPrev()

get the index whitch is farthest with current index.

nextWheel
size_t nextWheel(size_t wheel)

get next wheel times 's Wheel

prevWheel
void prevWheel(uint size)

The Wheel go forward

remove
void remove(WheelTimer tm)

remove the timer.

rest
void rest(WheelTimer tm, size_t next)

rest a timer.

rmGcScan
void rmGcScan()
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

isGcScan
isGcScan [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Meta