]> Cypherpunks repositories - gostls13.git/commit
sync: use atomic.Bool for Once.done
authorPrabhav Dogra <prabhavdogra1@gmail.com>
Sun, 20 Apr 2025 07:52:58 +0000 (07:52 +0000)
committerGopher Robot <gobot@golang.org>
Tue, 22 Apr 2025 15:28:13 +0000 (08:28 -0700)
commit95611c0eb4436102ab0dad3a705acff5f5eb7aca
treea7be0ceeb1039666a5f79dab0093c5cd5b89a3e4
parent352dd2d932c1c1c6dbc3e112fcdfface07d4fffb
sync: use atomic.Bool for Once.done

Updated the use of atomic.Uint32 to atomic.Bool for sync package.

Change-Id: Ib8da66fea86ef06e1427ac5118016b96fbcda6b1
GitHub-Last-Rev: d36e0f431fcde988f90badf86bbf04a18a411947
GitHub-Pull-Request: golang/go#73447
Reviewed-on: https://go-review.googlesource.com/c/go/+/666895
Reviewed-by: Junyang Shao <shaojunyang@google.com>
Reviewed-by: Keith Randall <khr@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Keith Randall <khr@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: Jorropo <jorropo.pgm@gmail.com>
src/sync/once.go
test/inline_sync.go