| 135 | } |
| 136 | |
| 137 | void RemoverThread() { |
| 138 | for (int i = 0; i < iterations_; ++i) { |
| 139 | int32_t arg; |
| 140 | bool got = queue_.BlockingGet(&arg); |
| 141 | if (!got) arg = -1; |
| 142 | |
| 143 | { |
| 144 | lock_guard<mutex> guard(lock_); |
| 145 | gotten_[arg] = gotten_[arg] + 1; |
| 146 | } |
| 147 | } |
| 148 | } |
| 149 | |
| 150 | void Run() { |
| 151 | for (int i = 0; i < nthreads_; ++i) { |
nothing calls this directly
no test coverage detected