Obtains data from a queue. This API is synchronous.
aclError acltdtDequeueData(uint32_t qid, void *data, size_t dataSize, size_t *retDataSize, void *userData, size_t userDataSize, int32_t timeout);
Parameter |
Input/Output |
Description |
|---|---|---|
qid |
Input |
Queue from which data is obtained. 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. |
retDataSize |
Input/Output |
Actual data size, 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 obtained from an empty queue, the system determines how to process the data based on the configured wait timeout interval.
The values are as follows:
|
0 on success; else, failure.