MCPcopy Create free account
hub / github.com/desertbit/timer / addTimerLocked

Function addTimerLocked

timers.go:27–36  ·  view source on GitHub ↗
(t *Timer)

Source from the content-addressed store, hash-verified

25}
26
27func addTimerLocked(t *Timer) {
28 t.i = len(timers)
29 timers = append(timers, t)
30 siftupTimer(t.i)
31
32 // Reschedule if this is the next timer in the heap.
33 if t.i == 0 {
34 reschedule()
35 }
36}
37
38// Delete timer t from the heap.
39// It returns true if t was removed, false if t wasn't even there.

Callers 2

addTimerFunction · 0.85
resetTimerFunction · 0.85

Calls 2

siftupTimerFunction · 0.85
rescheduleFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…