acltdtEnqueueData
Applicability
Product |
Supported |
|---|---|
Atlas 350 Accelerator Card |
√ |
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Description
Adds data to a queue.
Prototype
1 | 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 parameter, not supported currently. Value: 0. |
Returns
0 on success; otherwise, failure. For details, see aclError.