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

Method extract_data

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

Source from the content-addressed store, hash-verified

2788 }
2789
2790 static int extract_data(struct ArrowAsyncTask* task, struct ArrowDeviceArray* out) {
2791 std::unique_ptr<PrivateTaskData> private_data{
2792 reinterpret_cast<PrivateTaskData*>(task->private_data)};
2793 int ret = 0;
2794 if (out != nullptr) {
2795 auto status = ExportDeviceRecordBatch(*private_data->record_,
2796 private_data->record_->GetSyncEvent(), out);
2797 if (!status.ok()) {
2798 std::lock_guard<std::mutex> lock(private_data->producer_->mutex_);
2799 private_data->producer_->error_ = status;
2800 }
2801 }
2802
2803 return ret;
2804 }
2805
2806 struct ArrowAsyncDeviceStreamHandler* handler_;
2807 std::shared_ptr<State> state_;

Callers 1

nextMethod · 0.80

Calls 2

ExportDeviceRecordBatchFunction · 0.85
okMethod · 0.45

Tested by

no test coverage detected