-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Closed
Description
此issue登记记录在开发过程中遇到的一些使用陷阱,并最好能提供如何规避此类陷阱的方法、思路以及故事:)
- rt_malloc/rt_free
- 内核版本:<4.0.3
- 陷阱1:不应该出现在中断上下文中
- 说明:由于rt_malloc/rt_free里会操作锁,RT-Thread在中断上下文中不可拿锁。
- 陷阱2:不应该在关调度器、关中断后使用
- 说明:锁有可能被其它任务占用,此时关了调度器或者中断后,本任务就可能拿锁失败,锁死系统
mysterywolf, cychen88, Savitar-Tian, jiuxiaxixi and wineeemysterywolf and RISEJINGmysterywolfbalanceTWK, bigmagic123, thewon86 and rtek1000
Metadata
Metadata
Assignees
Labels
No labels