AssertRLock asserts whether the reader lock is being held.
()
| 55 | |
| 56 | // AssertRLock asserts whether the reader lock is being held. |
| 57 | func (s *SafeMutex) AssertRLock() { |
| 58 | AssertTrue(atomic.LoadInt32(&s.readers) > 0 || |
| 59 | atomic.LoadInt32(&s.writer) == 1) |
| 60 | } |
no test coverage detected