| 145 | } |
| 146 | |
| 147 | void RunConsumer(CppBenchmark::ContextPC& context) override |
| 148 | { |
| 149 | int value = -1; |
| 150 | if (_queue->dequeue(value) && (value == 0)) |
| 151 | context.StopConsume(); |
| 152 | } |
| 153 | |
| 154 | private: |
| 155 | std::shared_ptr<spsc_queue_t<int>> _queue; |
nothing calls this directly
no test coverage detected