_msg_alloc + Mutex ?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

_msg_alloc + Mutex ?

Jump to solution
948 Views
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 Kudos
1 Solution
412 Views
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.

View solution in original post

0 Kudos
1 Reply
413 Views
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 Kudos