| 19 | } |
| 20 | |
| 21 | void RawGeneratorWriter::Run() |
| 22 | { |
| 23 | m_thread = std::thread([&]() |
| 24 | { |
| 25 | while (true) |
| 26 | { |
| 27 | FeatureProcessorChunk chunk; |
| 28 | m_queue->WaitAndPop(chunk); |
| 29 | // As a sign of the end of tasks, we use an empty message. We have the right to do that, |
| 30 | // because there is only one reader. |
| 31 | if (!chunk.has_value()) |
| 32 | return; |
| 33 | |
| 34 | Write(*chunk); |
| 35 | } |
| 36 | }); |
| 37 | } |
| 38 | |
| 39 | std::vector<std::string> RawGeneratorWriter::GetNames() |
| 40 | { |
no test coverage detected