Checks if the module has work to do (should check input queues are empty)
| 79 | |
| 80 | //! Checks if the module has work to do (should check input queues are empty) |
| 81 | bool VisualizerModule::hasWork() const { |
| 82 | LOG_IF(WARNING, mesher_queue_.empty() && !backend_queue_.empty()) |
| 83 | << "Mesher queue is empty, yet backend queue is not!" |
| 84 | "This should not happen since Mesher runs at Backend pace!"; |
| 85 | // We don't check frontend queue because it runs faster than the other two |
| 86 | // queues. |
| 87 | return !mesher_queue_.empty(); |
| 88 | }; |
| 89 | |
| 90 | } // namespace VIO |