68
96
// goroutine. One goroutine may RLock (Lock) an RWMutex and then
69
97
// arrange for another goroutine to RUnlock (Unlock) it.
70
98
func (rw *RWMutex) Unlock() {
71
106
// Announce to readers there is no active writer.
72
107
r := atomic.AddInt32(&rw.readerCount, rwmutexMaxReaders)
73
108
// Unblock blocked readers, if any.