_msg_alloc + Mutex ?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

_msg_alloc + Mutex ?

跳至解决方案
1,437 次查看
MQXuser
Contributor III

Should we protect message pools with mutex? I thought MQX protected this functions  by default?

 

msg_ptr = (GENERIC_DATA_MSG_PTR)_msg_alloc(mp_QuadSPI);

 

If different priority tasks have calls to the instruction above, should we use Mutex to prevent simultaneous access?

 

Regards,

0 项奖励
回复
1 解答
901 次查看
JuroV
NXP Employee
NXP Employee
All kernel functions are task-safe; that means you can call them in more tasks and you dont care about mutual exclusion.

在原帖中查看解决方案

0 项奖励
回复
1 回复
902 次查看
JuroV
NXP Employee
NXP Employee
All kernel functions are task-safe; that means you can call them in more tasks and you dont care about mutual exclusion.
0 项奖励
回复