mirror of
https://github.com/golang/go
synced 2024-11-17 17:54:48 -07:00
runtime: update comment: modTimer is called by Timer.Reset
Change-Id: I97d0d1343d41b603a68388e496411fb040dc6d66
GitHub-Last-Rev: d11177ad24
GitHub-Pull-Request: golang/go#38625
Reviewed-on: https://go-review.googlesource.com/c/go/+/229767
Reviewed-by: Emmanuel Odeke <emm.odeke@gmail.com>
This commit is contained in:
parent
f979d072d3
commit
681559e1f1
@ -403,7 +403,7 @@ func dodeltimer0(pp *p) {
|
||||
}
|
||||
|
||||
// modtimer modifies an existing timer.
|
||||
// This is called by the netpoll code or time.Ticker.Reset.
|
||||
// This is called by the netpoll code or time.Ticker.Reset or time.Timer.Reset.
|
||||
// Reports whether the timer was modified before it was run.
|
||||
func modtimer(t *timer, when, period int64, f func(interface{}, uintptr), arg interface{}, seq uintptr) bool {
|
||||
if when < 0 {
|
||||
|
Loading…
Reference in New Issue
Block a user