go/src/sync
Jeff Wentworth fdd6dfd507 [release-branch.go1.17] sync/atomic: fix documentation for CompareAndSwap
The documentation for CompareAndSwap atomic/value incorrectly labelled
the function as CompareAndSwapPointer. This PR fixes that.

Updates #47699.
Fixes #47703.

Change-Id: I6db08fdfe166570b775248fd24550f5d28e3434e
GitHub-Last-Rev: 41f7870792
GitHub-Pull-Request: golang/go#47700
Reviewed-on: https://go-review.googlesource.com/c/go/+/342210
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
Trust: Daniel Martí <mvdan@mvdan.cc>
Run-TryBot: Daniel Martí <mvdan@mvdan.cc>
TryBot-Result: Go Bot <gobot@golang.org>
(cherry picked from commit 0a0a160d4d)
Reviewed-on: https://go-review.googlesource.com/c/go/+/342329
Trust: Dmitri Shuralyov <dmitshur@golang.org>
Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
2021-08-15 22:50:19 +00:00
..
atomic [release-branch.go1.17] sync/atomic: fix documentation for CompareAndSwap 2021-08-15 22:50:19 +00:00
cond.go
cond_test.go all: add empty line between copyright header and package clause 2020-08-17 09:45:44 +00:00
example_pool_test.go
example_test.go
export_test.go
map.go sync: update misleading comment in map.go about entry type 2021-04-08 14:08:29 +00:00
map_bench_test.go sync: add new Map method LoadAndDelete 2020-02-25 14:31:55 +00:00
map_reference_test.go sync: add new Map method LoadAndDelete 2020-02-25 14:31:55 +00:00
map_test.go sync: delete dirty keys inside Map.LoadAndDelete 2020-08-24 20:05:41 +00:00
mutex.go
mutex_test.go sync: fix goroutine leak for when TestMutexFairness times out 2020-08-14 23:04:16 +00:00
once.go sync: use 386 instead of x86-32 to refer to the 32 bit x86 architecture 2020-11-23 05:57:35 +00:00
once_test.go
pool.go Revert "sync: improve sync.Pool object stealing" 2021-04-26 18:54:39 +00:00
pool_test.go Revert "sync: improve sync.Pool object stealing" 2021-04-26 18:54:39 +00:00
poolqueue.go sync: fix typo in pooldequeue 2020-10-14 13:38:41 +00:00
runtime.go runtime: static lock ranking for the runtime (enabled by GOEXPERIMENT) 2020-04-07 21:51:03 +00:00
runtime2.go all: go fmt std cmd (but revert vendor) 2021-02-20 03:54:50 +00:00
runtime2_lockrank.go all: go fmt std cmd (but revert vendor) 2021-02-20 03:54:50 +00:00
runtime_sema_test.go
rwmutex.go sync: document RWMutex race semantics 2020-11-18 20:12:03 +00:00
rwmutex_test.go net/textproto, sync: unlock mutexes appropriately before panics 2020-04-08 16:19:51 +00:00
waitgroup.go
waitgroup_test.go