diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/sync/rwmutex.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sync/rwmutex.go b/src/sync/rwmutex.go index 7fe096dbd8..3fbfd28d7f 100644 --- a/src/sync/rwmutex.go +++ b/src/sync/rwmutex.go @@ -24,6 +24,8 @@ import ( // the writer has acquired (and released) the lock, to ensure that // the lock eventually becomes available to the writer. // Note that this prohibits recursive read-locking. +// A [RWMutex.RLock] cannot be upgraded into a [RWMutex.Lock], +// nor can a [RWMutex.Lock] be downgraded into a [RWMutex.RLock]. // // In the terminology of [the Go memory model], // the n'th call to [RWMutex.Unlock] “synchronizes before” the m'th call to Lock |
