RUnlock releases the reader lock.
()
| 49 | |
| 50 | // RUnlock releases the reader lock. |
| 51 | func (s *SafeMutex) RUnlock() { |
| 52 | atomic.AddInt32(&s.readers, -1) |
| 53 | s.m.RUnlock() |
| 54 | } |
| 55 | |
| 56 | // AssertRLock asserts whether the reader lock is being held. |
| 57 | func (s *SafeMutex) AssertRLock() { |
no outgoing calls