acltdtCreateQueue
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
The value 0 indicates success, and other values indicate failure. For details, see aclError.
Parent topic: Shared Queue Management