Documentation ¶
Index ¶
Constants ¶
View Source
const TIMERSLOTSCOUNT = 256
View Source
const TIMERWHEELCOUNT = 5
Variables ¶
This section is empty.
Functions ¶
Types ¶
type TimerHandler ¶
type TimerHandler func(args []interface{})
type TimerManager ¶
type TimerManager struct {
// contains filtered or unexported fields
}
func NewTimerManager ¶
func NewTimerManager() *TimerManager
func (*TimerManager) AddTimer ¶
func (this *TimerManager) AddTimer(delay uint64, op TimerHandler, args ...interface{}) uint64
func (*TimerManager) DeleteTimer ¶
func (this *TimerManager) DeleteTimer(timerID uint64) bool
func (*TimerManager) Execute ¶
func (this *TimerManager) Execute(count uint32) int
func (*TimerManager) GetSeqID ¶
func (this *TimerManager) GetSeqID() uint32
Click to show internal directories.
Click to hide internal directories.