MCPcopy Create free account
hub / github.com/apache/arrow / ~ThrottleImpl

Method ~ThrottleImpl

cpp/src/arrow/util/async_util.cc:42–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40 : max_concurrent_cost_(max_concurrent_cost), available_cost_(max_concurrent_cost) {}
41
42 ~ThrottleImpl() {
43 if (backoff_.is_valid()) {
44 backoff_.MarkFinished(Status::Cancelled("Throttle destroyed while paused"));
45 }
46 }
47
48 std::optional<Future<>> TryAcquire(int amt) override {
49 std::lock_guard<std::mutex> lk(mutex_);

Callers

nothing calls this directly

Calls 3

CancelledFunction · 0.85
is_validMethod · 0.45
MarkFinishedMethod · 0.45

Tested by

no test coverage detected