| 104 | } |
| 105 | |
| 106 | void RunConsumer(CppBenchmark::ContextPC& context) override |
| 107 | { |
| 108 | int value = -1; |
| 109 | if (_queue->dequeue(value) && (value == 0)) |
| 110 | context.StopConsume(); |
| 111 | } |
| 112 | |
| 113 | private: |
| 114 | std::shared_ptr<mpsc_queue_t<int>> _queue; |
nothing calls this directly
no test coverage detected