Obtains data from a queue. This API is synchronous.
The Ascend 310 AI Processor does not support this API in the current version.
The Ascend 910 AI Processor does not support this API in the current version.
The Ascend 310P AI Processor does not support this API in the current version.
Parameter |
Input/Output |
Description |
|---|---|---|
qid |
Input |
Queue from which data is obtained. You must call acltdtCreateQueue to create a queue in advance. |
buf |
Output |
Pointer to the shared buffer. |
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.