ReadUnlock releases a reader’s share of a read-preferred readers–writer mutex. It decrements the active-reader counter while holding readersLock; when the counter reaches zero, it unlocks globalLock so a waiting writer can proceed. section 4.2.2
The operation follows four steps:
- Unlock globalLock only when this reader is the last one out. section 4.2.2
