_msg_alloc + Mutex ?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
1,439件の閲覧回数
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 解決策
903件の閲覧回数
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 返信
904件の閲覧回数
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 件の賞賛
返信