]> Cypherpunks repositories - gostls13.git/commit
sync: remove note about creating with structures
authorJoonas Kuorilehto <joneskoo@derbian.fi>
Wed, 24 May 2017 17:37:53 +0000 (20:37 +0300)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 7 Jun 2017 21:35:20 +0000 (21:35 +0000)
commit766e1ae3623f7a30b308200ebdf42901ced6676c
treecc2f378ec2f62ab2300c712c168c4fb0dc3a5ed9
parentd8899acaf896529a5ab119af3e52ab5ad9488e51
sync: remove note about creating with structures

Remove note that sync.Cond, sync.Mutex, sync.RWMutex and atomic.Value
can be created as part of other data structures. Structs can be embedded
by default, and default should not be repeated.

Fixes #20471.

Change-Id: If3f5703d3f60abd96482b58ca43450d02a9e645a
Reviewed-on: https://go-review.googlesource.com/44071
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/sync/atomic/value.go
src/sync/cond.go
src/sync/mutex.go
src/sync/rwmutex.go