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

Method NotifyUnlocked

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

Source from the content-addressed store, hash-verified

84
85 private:
86 void NotifyUnlocked(std::unique_lock<std::mutex>&& lk) {
87 if (backoff_.is_valid()) {
88 Future<> backoff_to_fulfill = std::move(backoff_);
89 lk.unlock();
90 backoff_to_fulfill.MarkFinished();
91 } else {
92 lk.unlock();
93 }
94 }
95
96 std::mutex mutex_;
97 int max_concurrent_cost_;

Callers

nothing calls this directly

Calls 2

is_validMethod · 0.45
MarkFinishedMethod · 0.45

Tested by

no test coverage detected