Thread Safety in the CTL library - Mem and Msg Q
Not clear from what I read so far.
If I have 3 threads/tasks - two producing and one consuming. Can I call the ctl block memory allocate from each of the producers safely? Or do I need to do the mutex thing or just make it two message queues. Same question with the message queue post. Is it safe to call from two separate threads or should I just bypass the issue. Goes to the simplicity of the code mostly. I already have additional message queues because messages have different priorities (something I miss from my other RTOS experiences).
Thanks
BJ
Please sign in to leave a comment.
Comments
1 comment