acltdtCreateQueue
Applicability
Product |
Supported |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Description
Creates a queue.
Prototype
aclError acltdtCreateQueue(const acltdtQueueAttr *attr, uint32_t *qid)
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
attr |
Input |
Pointer to the queue attribute configuration. You need to call acltdtCreateQueueAttr to create data of the acltdtQueueAttr type, and call acltdtSetQueueAttr to set the queue attributes (such as the queue name) in advance. If this parameter is set to nullptr, the default values of the queue attributes are used. That is, the queue name is automatically allocated by the system, and the default queue depth is 8. |
qid |
Output |
Pointer to the queue ID. |
Returns
0 on success; else, failure. For details, see aclError.