]> Cypherpunks repositories - gostls13.git/commit
runtime: change timer.status to timer.state
authorRuss Cox <rsc@golang.org>
Wed, 14 Feb 2024 16:57:04 +0000 (11:57 -0500)
committerRuss Cox <rsc@golang.org>
Wed, 28 Feb 2024 16:44:18 +0000 (16:44 +0000)
commita155a2f8a135b8b274d978ccb9ca4e690176118b
treef81a478fb933c0a106b4060f567354e3a951ea2b
parentc6888d9264c481e61daa7ab0a8e603cdcb67b897
runtime: change timer.status to timer.state

The status enumeration is simple enough now that we can
view it as a bit set instead. Switch to a bit set, freeing up
the remaining bits for use in followup work to allow
garbage-collecting timers.

[This is one CL in a refactoring stack making very small changes
in each step, so that any subtle bugs that we miss can be more
easily pinpointed to a small change.]

Change-Id: I5f331fe3db1b5cb52f8571091f97f8ba029f3ac9
Reviewed-on: https://go-review.googlesource.com/c/go/+/564130
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
src/runtime/time.go