MCPcopy Create free account
hub / github.com/comaps/comaps / Run

Method Run

generator/raw_generator_writer.cpp:21–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19}
20
21void 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
39std::vector<std::string> RawGeneratorWriter::GetNames()
40{

Callers 1

Calls 3

WaitAndPopMethod · 0.80
has_valueMethod · 0.80
WriteFunction · 0.50

Tested by

no test coverage detected