]> Cypherpunks repositories - gostls13.git/commit
all: replace hand-rolled atomicBool types with atomic.Bool
authorLudi Rehak <ludi317@gmail.com>
Sun, 12 Jun 2022 05:14:37 +0000 (22:14 -0700)
committerDamien Neil <dneil@google.com>
Fri, 12 Aug 2022 16:41:47 +0000 (16:41 +0000)
commitf3c39a83a3076eb560c7f687cbb35eef9b506e7d
tree83e083f5b80b16544f35902217345d966ada3fe7
parentf001df540b3fc66a475985c1b7c810e7df063c8f
all: replace hand-rolled atomicBool types with atomic.Bool

Two packages construct atomic booleans from atomic integers.
Replace these implementations with the new atomic.Bool type.
Indeed, these packages were the impetus for the new atomic.Bool
type, having demonstrated a need to access boolean values
atomically.

Change-Id: I6a0314f8e7d660984a6daf36a62ed05a0eb74b2f
Reviewed-on: https://go-review.googlesource.com/c/go/+/411400
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Michael Pratt <mpratt@google.com>
Run-TryBot: Michael Pratt <mpratt@google.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Damien Neil <dneil@google.com>
src/internal/poll/fd_plan9.go
src/net/http/client.go
src/net/http/server.go