Lines Matching refs:Timer
15 type timer struct {
18 // Timer wakes up at when, and then at when+period, ... (period > 0 only)
19 // each time calling f(arg, now) in the timer goroutine, so f must be
35 t []*timer
53 t := new(timer)
62 // startTimer adds t to the timer heap.
64 func startTimer(t *timer) {
71 // stopTimer removes t from the timer heap if it is there.
74 func stopTimer(t *timer) bool {
85 func addtimer(t *timer) {
91 // Add a timer to the heap and start or kick timerproc if the new timer is
94 func addtimerLocked(t *timer) {
120 // Delete timer t from the heap.
122 func deltimer(t *timer) bool {
202 goparkunlock(&timers.lock, "timer goroutine (idle)", traceEvGoBlock, 1)
205 // At least one timer pending. Sleep until then.