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

Method start

capstone/sensor_pipeline.hpp:101–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99 SensorPipeline& operator=(const SensorPipeline&) = delete;
100
101 void start() {
102 running_ = true;
103 producer_ = std::thread(&SensorPipeline::producerLoop, this);
104 consumer_ = std::thread(&SensorPipeline::consumerLoop, this);
105 }
106
107 void stop() {
108 if (!running_.exchange(false)) return; // Already stopped

Callers 2

TESTFunction · 0.80
mainFunction · 0.80

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.64