]> Cypherpunks repositories - gostls13.git/commit
runtime: add new dodeltimer and dodeltimer0 functions
authorIan Lance Taylor <iant@golang.org>
Thu, 11 Apr 2019 04:23:55 +0000 (21:23 -0700)
committerIan Lance Taylor <iant@golang.org>
Tue, 22 Oct 2019 20:45:48 +0000 (20:45 +0000)
commit9093b1def0b5e6f3ac30d5f9c18b375e8f5964e9
treeb78e2f03c8527485b70b837d3a7d3c03bd9dcdca
parentb12703e052feb46faa3a5e4efd3d68837682717e
runtime: add new dodeltimer and dodeltimer0 functions

The dodeltimer function removes a timer from a heap. The dodeltimer0
function removes the first timer from a heap; in the old timer code
this common special case was inlined in the timerproc function.

Updates #27707

Change-Id: I1b7c0af46866abb4bffa8aa4d8e7143f9ae8f402
Reviewed-on: https://go-review.googlesource.com/c/go/+/171834
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Emmanuel Odeke <emm.odeke@gmail.com>
src/runtime/time.go