acltdtEnqueueData
Description
Adds data to a queue.
Prototype
aclError acltdtEnqueueData(uint32_t qid, const void *data, size_t dataSize, const void *userData, size_t userDataSize, int32_t timeout, uint32_t rsv);
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
qid |
Input |
Queue to which data is to be added. You must call acltdtCreateQueue to create a queue in advance. |
data |
Input |
Pointer to buffer data. The host buffer or device buffer is supported. |
dataSize |
Input |
Size of buffer data, in bytes. |
userData |
Input |
Pointer to the user-defined data. If no user-defined data is available, set this parameter to nullptr. |
userDataSize |
Input |
Size of the user-defined data (≤ 96 bytes). If no user-defined data is available, set this parameter to 0. |
timeout |
Input |
Wait timeout interval. If data is added to a full queue, the system determines how to process the data based on the configured wait timeout interval. The options are as follows:
|
rsv |
Input |
Reserved. Value: 0. |
Returns
The value 0 indicates success, and other values indicate failure. For details, see aclError.