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

Method ResumeProducing

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

Source from the content-addressed store, hash-verified

250 }
251
252 void ResumeProducing(ExecNode* output, int32_t counter) override {
253 Future<> to_finish;
254 {
255 std::lock_guard<std::mutex> lg(mutex_);
256 if (counter <= backpressure_counter_) {
257 return;
258 }
259 backpressure_counter_ = counter;
260 if (backpressure_future_.is_finished()) {
261 return;
262 }
263 to_finish = backpressure_future_;
264 backpressure_future_ = Future<>::MakeFinished();
265 }
266 to_finish.MarkFinished();
267 }
268
269 Status StopProducing() override {
270 // GH-35837: ensure node is not paused

Callers

nothing calls this directly

Calls 2

is_finishedMethod · 0.45
MarkFinishedMethod · 0.45

Tested by

no test coverage detected