This commit is contained in:
aozhiwei 2020-11-30 17:59:36 +08:00
parent 56027b3c56
commit 70271a1b60

View File

@ -133,6 +133,12 @@ func (this *Timer) AddDeadLineTimer(
return this.AddDeadLineTimerEx(milli_seconds, init_func, timer_func, nil)
}
func (this *Timer) AddSimpleDeadLineTimer(
milli_seconds int32,
timer_func func (params* XParams)) *TimerList {
return this.AddDeadLineTimer(milli_seconds, nil, timer_func);
}
func (this *Timer) AddDeadLineTimerEx(
milli_seconds int32,
init_func func (params* XParams),
@ -158,6 +164,12 @@ func (this *Timer) AddRepeatTimer(
return this.AddRepeatTimerEx(milli_seconds, init_func, timer_func, nil)
}
func (this *Timer) AddSimpleRepeatTimer(
milli_seconds int32,
timer_func func (params* XParams)) *TimerList {
return this.AddRepeatTimer(milli_seconds, nil, timer_func)
}
func (this *Timer) AddRepeatTimerEx(
milli_seconds int32,
init_func func (params* XParams),
@ -182,6 +194,12 @@ func (this *Timer) AddFixedTimer(
return this.AddFixedTimerEx(milli_seconds, init_func, timer_func, nil)
}
func (this *Timer) AddSimpleFixedTimer(
milli_seconds int32,
timer_func func (params* XParams)) *TimerList {
return this.AddFixedTimer(milli_seconds, nil, timer_func)
}
func (this *Timer) AddFixedTimerEx(
milli_seconds int32,
init_func func (params* XParams),