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

Method cancel

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

Source from the content-addressed store, hash-verified

2781 }
2782
2783 static void cancel(struct ArrowAsyncProducer* producer) {
2784 auto* self = reinterpret_cast<State*>(producer->private_data);
2785 {
2786 std::lock_guard<std::mutex> lock(self->mutex_);
2787 if (!self->error_.ok()) {
2788 return;
2789 }
2790 self->error_ = Status::Cancelled("Consumer requested cancellation");
2791 }
2792 self->cv_.notify_all();
2793 }
2794
2795 static int extract_data(struct ArrowAsyncTask* task, struct ArrowDeviceArray* out) {
2796 std::unique_ptr<PrivateTaskData> private_data{

Callers 3

test_cancel_do_getFunction · 0.80

Calls 2

CancelledFunction · 0.85
okMethod · 0.45

Tested by 2

test_cancel_do_getFunction · 0.64