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

Method WaitForNextReleasedBatch

cpp/src/arrow/acero/test_nodes.cc:221–234  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

219 }
220
221 Future<> WaitForNextReleasedBatch() {
222 std::lock_guard lg(mutex_);
223 if (current_waiter_.is_valid()) {
224 return current_waiter_;
225 }
226 Future<> fut;
227 if (num_allowed_batches_ < 0 || num_released_batches_ < num_allowed_batches_) {
228 num_released_batches_++;
229 return Future<>::MakeFinished();
230 }
231
232 current_waiter_ = Future<>::Make();
233 return current_waiter_;
234 }
235
236 private:
237 void NotifyAll() {

Callers

nothing calls this directly

Calls 2

MakeFunction · 0.50
is_validMethod · 0.45

Tested by

no test coverage detected