| 122 | } |
| 123 | |
| 124 | void InserterThread(int arg) { |
| 125 | for (int i = 0; i < iterations_; ++i) { |
| 126 | queue_.BlockingPut(arg); |
| 127 | } |
| 128 | |
| 129 | { |
| 130 | lock_guard<mutex> guard(lock_); |
| 131 | if (--num_inserters_ == 0) { |
| 132 | queue_.Shutdown(); |
| 133 | } |
| 134 | } |
| 135 | } |
| 136 | |
| 137 | void RemoverThread() { |
| 138 | for (int i = 0; i < iterations_; ++i) { |
nothing calls this directly
no test coverage detected