| 45 | Data_.failed = true; \ |
| 46 | } |
| 47 | void RunReaders() { |
| 48 | Data_.mutex.AcquireRead(); |
| 49 | |
| 50 | ++Data_.readersIn; |
| 51 | usleep(100); |
| 52 | FAIL_ASSERT(Data_.readersIn.load() == Total_); |
| 53 | usleep(100); |
| 54 | --Data_.readersIn; |
| 55 | |
| 56 | Data_.mutex.ReleaseRead(); |
| 57 | } |
| 58 | |
| 59 | void RunReadersWriters() { |
| 60 | if (Id_ % 2 == 0) { |
nothing calls this directly
no test coverage detected