diff options
Diffstat (limited to 'src/sync')
| -rw-r--r-- | src/sync/rwmutex.go | 3 | ||||
| -rw-r--r-- | src/sync/rwmutex_test.go | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/sync/rwmutex.go b/src/sync/rwmutex.go index 94889149a1..cb2dfe1ad8 100644 --- a/src/sync/rwmutex.go +++ b/src/sync/rwmutex.go @@ -10,6 +10,9 @@ import ( "unsafe" ) +// There is a modified copy of this file in runtime/rwmutex.go. +// If you make any changes here, see if you should make them there. + // An RWMutex is a reader/writer mutual exclusion lock. // The lock can be held by an arbitrary number of readers or a single writer. // The zero value for a RWMutex is an unlocked mutex. diff --git a/src/sync/rwmutex_test.go b/src/sync/rwmutex_test.go index 0436f97239..9ee8864ceb 100644 --- a/src/sync/rwmutex_test.go +++ b/src/sync/rwmutex_test.go @@ -14,6 +14,9 @@ import ( "testing" ) +// There is a modified copy of this file in runtime/rwmutex_test.go. +// If you make any changes here, see if you should make them there. + func parallelReader(m *RWMutex, clocked, cunlock, cdone chan bool) { m.RLock() clocked <- true |
