MCPcopy Create free account
hub / github.com/arjunskumar/Robotics_CPP_Notes / stop

Method stop

capstone/sensor_pipeline.hpp:107–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105 }
106
107 void stop() {
108 if (!running_.exchange(false)) return; // Already stopped
109 queue_.shutdown();
110 if (producer_.joinable()) producer_.join();
111 if (consumer_.joinable()) consumer_.join();
112 }
113
114 [[nodiscard]] std::size_t processedCount() const noexcept {
115 return processed_count_.load(std::memory_order_relaxed);

Callers 2

TESTFunction · 0.80
mainFunction · 0.80

Calls 1

shutdownMethod · 0.80

Tested by 1

TESTFunction · 0.64