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

Method extract_data

cpp/src/arrow/c/bridge.cc:2798–2812  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2796 }
2797
2798 static int extract_data(struct ArrowAsyncTask* task, struct ArrowDeviceArray* out) {
2799 std::unique_ptr<PrivateTaskData> private_data{
2800 reinterpret_cast<PrivateTaskData*>(task->private_data)};
2801 int ret = 0;
2802 if (out != nullptr) {
2803 auto status = ExportDeviceRecordBatch(*private_data->record_,
2804 private_data->record_->GetSyncEvent(), out);
2805 if (!status.ok()) {
2806 std::lock_guard<std::mutex> lock(private_data->producer_->mutex_);
2807 private_data->producer_->error_ = status;
2808 }
2809 }
2810
2811 return ret;
2812 }
2813
2814 struct ArrowAsyncDeviceStreamHandler* handler_;
2815 std::shared_ptr<State> state_;

Callers 1

nextMethod · 0.80

Calls 2

ExportDeviceRecordBatchFunction · 0.85
okMethod · 0.45

Tested by

no test coverage detected