| 286 | } |
| 287 | |
| 288 | void InserterThread(int arg) { |
| 289 | for (int i = 0; i < puts_; i++) { |
| 290 | ASSERT_EQ(queue_.Put(arg), QUEUE_SUCCESS); |
| 291 | } |
| 292 | sync_latch_.CountDown(); |
| 293 | sync_latch_.Wait(); |
| 294 | for (int i = 0; i < blocking_puts_; i++) { |
| 295 | ASSERT_OK(queue_.BlockingPut(arg)); |
| 296 | } |
| 297 | MutexLock guard(lock_); |
| 298 | if (--num_inserters_ == 0) { |
| 299 | queue_.Shutdown(); |
| 300 | } |
| 301 | } |
| 302 | |
| 303 | void RemoverThread() { |
| 304 | for (int i = 0; i < puts_ + blocking_puts_; i++) { |
nothing calls this directly
no test coverage detected