acltdtEnqueue
Applicability
Product |
Supported |
|---|---|
Atlas 350 Accelerator Card |
☓ |
☓ |
|
☓ |
|
☓ |
|
☓ |
|
☓ |
Description
Adds data to a queue. The buffer for storing data must be allocated by calling acltdtAllocBuf.
Prototype
1 | aclError acltdtEnqueue(uint32_t qid, acltdtBuf buf, int32_t timeout) |
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. |
buf |
Input |
Pointer to the shared buffer. For details about the type definition, see acltdtBuf. 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 options are as follows:
|
Returns
0 on success; otherwise, failure. For details, see aclError.