#define LOS_ERRNO_QUEUE_PEND_IN_LOCK   LOS_ERRNO_OS_ERROR(LOS_MOD_QUE, 0x06)

Queue error code: The task is forbidden to be blocked on a queue when the task is locked.

Value: 0x02000606

Solution: Unlock the task before using a queue.

在文件los_queue.h120行定义。