Skip to content

Commit

Permalink
Add device_type to ArrowAsyncProducer
Browse files Browse the repository at this point in the history
  • Loading branch information
zeroshade committed Nov 6, 2024
1 parent 85178f7 commit 04b6092
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/source/format/CDeviceDataInterface.rst
Original file line number Diff line number Diff line change
Expand Up @@ -695,6 +695,8 @@ The C device async stream interface consists of three ``struct`` definitions:
};
struct ArrowAsyncProducer {
ArrowDeviceType device_type;
void (*request)(struct ArrowAsyncProducer* self, int64_t n);
void (*cancel)(struct ArrowAsyncProducer* self);
Expand Down Expand Up @@ -869,6 +871,12 @@ The ArrowAsyncProducer structure

This producer-provided and managed object has the following fields:

.. c:member:: ArrowDeviceType ArrowAsyncProducer.device_type
*Mandatory.* The device type that this producer will provide data on. All
``ArrowDeviceArray`` structs that are produced by this producer should have the
same device type as is set here.

.. c:member:: void (*ArrowAsyncProducer.request)(struct ArrowAsyncProducer*, uint64_t)
*Mandatory.* This function must be called by a consumer to start receiving calls to
Expand Down

0 comments on commit 04b6092

Please sign in to comment.