UINT32 LOS_QueueDelete ( UINT32  uwQueueID  ) 

Delete a queue.

Description:
This API is used to delete a queue.
注意:
  • This API cannot be used to delete a queue that is not created.
  • A synchronous queue fails to be deleted if any tasks are blocked on it, or some queues are being read or written.
参数:
参数名称 描述
uwQueueID  [IN] Queue ID created by LOS_QueueCreate. The value range is [1,LOSCFG_BASE_IPC_QUEUE_LIMIT].
返回值:
返回值 描述
LOS_OK  The queue is successfully deleted.
LOS_ERRNO_QUEUE_NOT_FOUND  The queue cannot be found.
LOS_ERRNO_QUEUE_NOT_CREATE  The queue handle passed in when the queue is being deleted is incorrect.
LOS_ERRNO_QUEUE_IN_TSKUSE  The queue that blocks a task cannot be deleted.
LOS_ERRNO_QUEUE_IN_TSKWRITE  Queue reading and writing are not synchronous.
Dependency:
  • los_queue.h: the header file that contains the API declaration.
参见:
LOS_QueueCreate | LOS_QueueCreate
自从:
Huawei LiteOS V100R001C00