Delete timer t from the heap. It returns true if t was removed, false if t wasn't even there. Do not need to update the timer routine: if it wakes up early, no big deal.
(t *Timer)
| 39 | // It returns true if t was removed, false if t wasn't even there. |
| 40 | // Do not need to update the timer routine: if it wakes up early, no big deal. |
| 41 | func delTimer(t *Timer) (b bool) { |
| 42 | mutex.Lock() |
| 43 | b = delTimerLocked(t) |
| 44 | mutex.Unlock() |
| 45 | return |
| 46 | } |
| 47 | |
| 48 | // Delete timer t from the heap. |
| 49 | // It returns true if t was removed, false if t wasn't even there. |
no test coverage detected
searching dependent graphs…