| 27 | namespace VIO { |
| 28 | |
| 29 | void 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 | |
| 40 | void producer(ThreadsafeQueue<std::string>& q, // NOLINT |
| 41 | const std::atomic_bool& kill_switch) { |
nothing calls this directly
no test coverage detected