sync: deemphasize goroutines in RWMutex documentation #41555
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
Documentation
help wanted
NeedsFix
The path to resolution is known, but the work has not been done.
Milestone
sync.RWMutex
performs no goroutine-specific accounting (see also #9201) and cannot be locked reentrantly.Despite the fact that a
sync.RWMutex
is not held by a specific goroutine, the documentation for theRWMutex
type is currently phrased in terms of goroutines holding the lock (emphasis mine):This stands in contrast to the documentation for the
Unlock
method, which states more clearly:The type-level documentation should be rewritten so that it does not imply that the existing holder of the RWMutex is “a goroutine”.
The text was updated successfully, but these errors were encountered: