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

Method MaybeEndUnlocked

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

Source from the content-addressed store, hash-verified

220 }
221
222 void MaybeEndUnlocked(std::unique_lock<std::mutex>&& lk) {
223 if (IsFullyFinished()) {
224 lk.unlock();
225 finished_.MarkFinished(maybe_error_);
226 } else {
227 // Always unlock for consistency's sake
228 lk.unlock();
229 }
230 }
231
232 void AbortUnlocked(const Status& st, std::unique_lock<std::mutex>&& lk) {
233 DCHECK(!st.ok());

Callers

nothing calls this directly

Calls 1

MarkFinishedMethod · 0.45

Tested by

no test coverage detected