RLock holds the reader lock.
()
| 43 | |
| 44 | // RLock holds the reader lock. |
| 45 | func (s *SafeMutex) RLock() { |
| 46 | s.m.RLock() |
| 47 | atomic.AddInt32(&s.readers, 1) |
| 48 | } |
| 49 | |
| 50 | // RUnlock releases the reader lock. |
| 51 | func (s *SafeMutex) RUnlock() { |
no outgoing calls