MCPcopy Create free account
hub / github.com/Cyinx/einx / add_timer

Method add_timer

timer/timer.go:51–60  ·  view source on GitHub ↗
(timer *xtimer)

Source from the content-addressed store, hash-verified

49}
50
51func (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
62func (this *timerList) get_timer(seqID uint32) *xtimer {
63 curr_head := this.head

Callers 1

AddTimerMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected