Homepage GitHub

Use libcanard should I care about memory pool mutex when I use Freertos

(Cherish Gww) #1

Hi Libcanard
Nice to meet you.

I have a little question about libcanard.
I am using freertos in my firmware, and libcanard.
should I care about libcanard memory pool mutex on different task?

(Pavel Kirienko) #2

No, you shouldn’t, but you need to ensure that you are not accessing the library API from different threads simultaneously because the library is not thread-safe. It is probably best to limits the library’s use to just one thread if possible; if not, create a single mutex and acquire it every time you invoke the library’s API.