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

Method Finish

r/src/RTasks.cpp:31–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29 : nullptr) {}
30
31Status RTasks::Finish() {
32 Status status = Status::OK();
33
34 // run the delayed tasks now
35 for (auto& task : delayed_serial_tasks_) {
36 status &= std::move(task)();
37 if (!status.ok()) {
38 stop_source_.RequestStop();
39 break;
40 }
41 }
42
43 // then wait for the parallel tasks to finish
44 if (use_threads_) {
45 status &= parallel_tasks_->Finish();
46 }
47
48 return status;
49}
50
51void RTasks::Append(bool parallel, RTasks::Task&& task) {
52 if (parallel && use_threads_) {

Callers 15

PushBuilderResultMethod · 0.45
VisitMethod · 0.45
MakeZeroLengthArrayFunction · 0.45
ConvertMethod · 0.45
CreateEmptyArrayFunction · 0.45
to_data_frameFunction · 0.45
ReadBaseMethod · 0.45
operator()Method · 0.45
MakeSimpleArrayFunction · 0.45

Calls 3

RequestStopMethod · 0.80
OKFunction · 0.50
okMethod · 0.45

Tested by 1