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

Function MakeFinalContinuation

cpp/src/arrow/acero/task_util_test.cc:88–97  ·  view source on GitHub ↗

Signal the cv if this is the last group

Source from the content-addressed store, hash-verified

86}
87// Signal the cv if this is the last group
88TaskScheduler::TaskGroupContinuationImpl MakeFinalContinuation(
89 std::atomic<int>* counter, std::mutex* mutex, std::condition_variable* finish) {
90 return [=](std::size_t thread_id) {
91 if (counter->fetch_sub(1) == 1) {
92 std::lock_guard<std::mutex> lg(*mutex);
93 finish->notify_one();
94 }
95 return Status::OK();
96 };
97}
98
99// This test simulates one of the current use patterns of the
100// task scheduler. There are a number of groups. The groups

Callers 1

TESTFunction · 0.85

Calls 1

OKFunction · 0.50

Tested by

no test coverage detected