Merge branch 'master' of git.kingsome.cn:server_common/f5

This commit is contained in:
hujiabin 2023-10-25 15:57:49 +08:00
commit 64cce9a691

View File

@ -19,11 +19,11 @@ type timer struct {
func (this *timer) init() { func (this *timer) init() {
this.base = new(q5.XTimer) this.base = new(q5.XTimer)
this.base.Init( this.base.Init(
func (context interface{}) int64 { func(context interface{}) int64 {
return q5.GetTickCount() return q5.GetTickCount()
}, },
nil, nil,
1000 * 60, 1000*60,
5000) 5000)
} }
@ -90,10 +90,14 @@ func (this *timer) ModifyTimer(timerWp *TimerWp, expireTime int32) {
this.base.ModifyTimer(timerWp.XTimerWp, expireTime) this.base.ModifyTimer(timerWp.XTimerWp, expireTime)
} }
func (this *timer) Delete(timerWp *TimerWp) { func (this *timer) Delete(timerWp *TimerWp) {
this.base.Delete(timerWp.XTimerWp) this.base.Delete(timerWp.XTimerWp)
} }
func (this *timer) GetRemainTime(timerWp *TimerWp) int64 { func (this *timer) GetRemainTime(timerWp *TimerWp) int64 {
return this.base.GetRemainTime(timerWp.XTimerWp) return this.base.GetRemainTime(timerWp.XTimerWp)
} }
func (this *timer) DeleteRunningTimer() {
this.base.DeleteRunningTimer()
}