(timer *xtimer)
| 49 | } |
| 50 | |
| 51 | func (this *timerList) add_timer(timer *xtimer) { |
| 52 | timer.next = nil |
| 53 | if this.tail == nil { |
| 54 | this.tail = timer |
| 55 | this.head = this.tail |
| 56 | return |
| 57 | } |
| 58 | this.tail.next = timer |
| 59 | this.tail = timer |
| 60 | } |
| 61 | |
| 62 | func (this *timerList) get_timer(seqID uint32) *xtimer { |
| 63 | curr_head := this.head |