Adds data to a queue. The buffer for storing data must be allocated by calling acltdtAllocBuf. 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 to which data is to be added. You must call acltdtCreateQueue to create a queue in advance. |
buf |
Input |
Pointer to the shared buffer. You must call acltdtAllocBuf in advance to allocate the buffer. |
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 values are as follows:
|
0 on success; else, failure.