()
| 48 | } |
| 49 | |
| 50 | func (this *TimerManager) GetSeqID() uint32 { |
| 51 | this.seqIDIndex++ |
| 52 | if this.seqIDIndex == 0 || this.seqIDIndex >= 0xffffff { |
| 53 | this.seqIDIndex = 1 |
| 54 | } |
| 55 | return this.seqIDIndex |
| 56 | } |
| 57 | |
| 58 | func (this *TimerManager) AddTimer(delay uint64, op TimerHandler, args ...interface{}) uint64 { |
| 59 | seqID := this.GetSeqID() |