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

**URL:** <https://forum.opencyphal.org/t/use-libcanard-should-i-care-about-memory-pool-mutex-when-i-use-freertos/192>\
**Category:** Libcanard\
**Created:** [October 13, 2018, 8:16am UTC](https://forum.opencyphal.org/t/use-libcanard-should-i-care-about-memory-pool-mutex-when-i-use-freertos/192 "2018-10-13T08:16:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cherish-Gww](https://forum.opencyphal.org/user_avatar/forum.opencyphal.org/cherish-gww/32/1129_2.png) [@Cherish-Gww](https://forum.opencyphal.org/u/Cherish-Gww)\
**Post date:** [October 13, 2018, 8:16am UTC](https://forum.opencyphal.org/t/use-libcanard-should-i-care-about-memory-pool-mutex-when-i-use-freertos/192/1 "2018-10-13T08:16:05Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![pavel.kirienko](https://forum.opencyphal.org/user_avatar/forum.opencyphal.org/pavel.kirienko/32/9_2.png) [@pavel.kirienko](https://forum.opencyphal.org/u/pavel.kirienko)\
**Post date:** [October 13, 2018, 4:10pm UTC](https://forum.opencyphal.org/t/use-libcanard-should-i-care-about-memory-pool-mutex-when-i-use-freertos/192/2 "2018-10-13T16:10:41Z")

</div>

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.
