1
0
mirror of https://github.com/golang/go synced 2024-11-19 22:44:45 -07:00
go/src/sync
Russ Cox 0c0c3c186b sync/atomic: remove noCopy from Value
Values must not be copied after the first use.

Using noCopy makes vet complain about copies
even before the first use, which is incorrect
and very frustrating.

Drop it.

Fixes #21504.

Change-Id: Icd3a5ac3fe11e84525b998e848ed18a5d996f45a
Reviewed-on: https://go-review.googlesource.com/80836
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
2017-12-01 16:38:53 +00:00
..
atomic sync/atomic: remove noCopy from Value 2017-12-01 16:38:53 +00:00
cond_test.go
cond.go all: change github.com issue links to golang.org 2017-11-04 04:13:41 +00:00
example_pool_test.go
example_test.go
export_test.go sync: deflake TestPool and TestPoolNew 2017-06-28 22:02:07 +00:00
map_bench_test.go sync: release m.mu during (*RWMutexMap).Range callbacks in sync_test 2017-07-20 18:51:09 +00:00
map_reference_test.go sync: release m.mu during (*RWMutexMap).Range callbacks in sync_test 2017-07-20 18:51:09 +00:00
map_test.go sync: really test DeepCopyMap 2017-04-30 14:17:36 +00:00
map.go sync: delete a sentence from the Map docs 2017-07-21 22:00:47 +00:00
mutex_test.go
mutex.go sync: remove note about creating with structures 2017-06-07 21:35:20 +00:00
once_test.go
once.go
pool_test.go sync: deflake TestPool and TestPoolNew 2017-06-28 22:02:07 +00:00
pool.go
runtime_sema_test.go
runtime.go
rwmutex_test.go runtime: add read/write mutex type 2017-06-19 17:40:38 +00:00
rwmutex.go runtime: add read/write mutex type 2017-06-19 17:40:38 +00:00
waitgroup_test.go all: remove some unused parameters in test code 2017-04-25 14:38:10 +00:00
waitgroup.go all: join some chained ifs to unindent code 2017-08-29 20:57:41 +00:00