MCPcopy Create free account
hub / github.com/MIT-SPARK/Kimera-VIO / consumer

Function consumer

tests/testThreadsafeQueue.cpp:29–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27namespace VIO {
28
29void consumer(ThreadsafeQueue<std::string>& q, // NOLINT
30 const std::atomic_bool& kill_switch) {
31 while (!kill_switch) {
32 std::string msg = "No msg!";
33 if (q.popBlocking(msg)) {
34 VLOG(1) << "Got msg: " << msg << '\n';
35 }
36 }
37 q.shutdown();
38}
39
40void producer(ThreadsafeQueue<std::string>& q, // NOLINT
41 const std::atomic_bool& kill_switch) {

Callers

nothing calls this directly

Calls 2

popBlockingMethod · 0.45
shutdownMethod · 0.45

Tested by

no test coverage detected