Tool/software: Code Composer Studio
Hi,
i want to know if mq_send is protected from multi source call?
do i need to protect mq_send with mutex?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Tool/software: Code Composer Studio
Hi,
i want to know if mq_send is protected from multi source call?
do i need to protect mq_send with mutex?
HI Asaf,
mq_send is reentrant, but if you are using the same message i don't think there is protection around the passed parameters.
BR,
Vince
If a variable is being used by two functions, and you can't guarantee that one won't interrupt the other during an operation, then yes. I believe this is the case for mq_send().
BR,
Vince