804 Star 2.4K Fork 1.2K

GVPHuawei LiteOS / LiteOS

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
precautions-18.md 1.61 KB
一键复制 编辑 原始数据 按行查看 历史

Precautions

  • The maximum number of queues supported by the system refers to the total number of queue resources in the entire system instead of the number of queue resources that can be used by users. For example, if the system software timer occupies one more queue resource, the number of available queue resources decreases by one.
  • The queue name and flags input during queue creation are not used currently and are reserved for future use.
  • The input parameter timeout in the queue interface function is a relative time.
  • LOS_QueueReadCopy, LOS_QueueWriteCopy, and LOS_QueueWriteHeadCopy are a group of APIs; LOS_QueueRead, LOS_QueueWrite, and LOS_QueueWriteHead are a group of APIs. The two groups of APIs must be used together.
  • As the LOS_QueueWrite, LOS_QueueWriteHead, and LOS_QueueRead APIs are called to perform operations on data addresses, you must ensure that the memory area to which the pointer obtained by calling LOS_QueueRead points is not modified or released abnormally when the queue is being read. Otherwise, unpredictable results may occur.
  • The LOS_QueueWrite, LOS_QueueWriteHead, and LOS_QueueRead APIs are called to operate data addresses, which means that the actual write or read data length is the same as that of a pointer. Therefore, before using these APIs, ensure that the message node size is the same as the pointer length during queue creation, to avoid unnecessary waste and read failures.
  • After the queue is used, if the memory that is dynamically allocated exists, the memory needs to be released in a timely manner.
C
1
https://gitee.com/LiteOS/LiteOS.git
git@gitee.com:LiteOS/LiteOS.git
LiteOS
LiteOS
LiteOS
master

搜索帮助