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

Function SetTotal

cpp/src/arrow/acero/util.h:75–79  ·  view source on GitHub ↗

return true if the counter is complete

Source from the content-addressed store, hash-verified

73
74 // return true if the counter is complete
75 bool SetTotal(int total) {
76 total_.store(total);
77 if (count_.load() != total) return false;
78 return DoneOnce();
79 }
80
81 // return true if the counter has not already been completed
82 bool Cancel() { return DoneOnce(); }

Callers

nothing calls this directly

Calls 2

storeMethod · 0.80
loadMethod · 0.45

Tested by

no test coverage detected