MCPcopy Create free account
hub / github.com/ETLCPP/etl / process_queue

Method process_queue

examples/SharedMessage/SharedMessage.cpp:143–157  ·  view source on GitHub ↗

Processes the queued shared messages.

Source from the content-addressed store, hash-verified

141 //****************************************
142 // Processes the queued shared messages.
143 void process_queue()
144 {
145 while (!queue.empty())
146 {
147 // Get the shared message from the queue.
148 etl::shared_message shared_msg = queue.front();
149
150 Print("MessageRouter2 : Process queued shared message", shared_msg);
151
152 // Send it to the base implementation for routing.
153 base_t::receive(shared_msg);
154
155 queue.pop();
156 }
157 }
158
159 //****************************************
160 void on_receive(const Message1& msg)

Callers 1

mainFunction · 0.45

Calls 4

PrintFunction · 0.85
emptyMethod · 0.45
frontMethod · 0.45
popMethod · 0.45

Tested by

no test coverage detected