MCPcopy Create free account
hub / github.com/apache/arrow / PauseProducing

Method PauseProducing

cpp/src/arrow/acero/source_node.cc:239–250  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

237 const Ordering& ordering() const override { return ordering_; }
238
239 void PauseProducing(ExecNode* output, int32_t counter) override {
240 std::lock_guard<std::mutex> lg(mutex_);
241 if (counter <= backpressure_counter_) {
242 return;
243 }
244 backpressure_counter_ = counter;
245 if (!backpressure_future_.is_finished()) {
246 // Could happen if we get something like Pause(1) Pause(3) Resume(2)
247 return;
248 }
249 backpressure_future_ = Future<>::Make();
250 }
251
252 void ResumeProducing(ExecNode* output, int32_t counter) override {
253 Future<> to_finish;

Callers

nothing calls this directly

Calls 2

MakeFunction · 0.50
is_finishedMethod · 0.45

Tested by

no test coverage detected