| 133 | } |
| 134 | |
| 135 | void RunProducer(CppBenchmark::ContextPC& context) override |
| 136 | { |
| 137 | if (_count >= items_to_produce) |
| 138 | { |
| 139 | _queue->enqueue(0); |
| 140 | context.StopProduce(); |
| 141 | return; |
| 142 | } |
| 143 | |
| 144 | _queue->enqueue(_count++); |
| 145 | } |
| 146 | |
| 147 | void RunConsumer(CppBenchmark::ContextPC& context) override |
| 148 | { |
nothing calls this directly
no test coverage detected