This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
What are the __retarget_lock functions?
- From: Thomas Kindler <mail+newlib at t-kindler dot de>
- To: newlib at sourceware dot org
- Cc: Freddie Chopin <freddie_chopin at op dot pl>
- Date: Fri, 24 Aug 2018 22:42:07 +0200
- Subject: What are the __retarget_lock functions?
Hello!
I've been using newlib on an STM32 with FreeRTOS for a few years (using the
official GNU Arm Embedded Toolchain).
Up until now, I enabled FreeRTOS with configUSE_NEWLIB_REENTRANT, implemented
the syscalls (_sbrk, _read, _write, etc.) and __malloc_lock / __malloc_unlock.
Now I see, that there are new functions in "lock.h".
Unfortunately, I could not find any information on these functions. A google
search found a lot of FreeRTOS + newlib projects, but none of them implemented
these locks.
Do I need to implement them (how?)
Why are they needed and what do they do?
best regards,
--
Thomas Kindler <mail+newlib@t-kindler.de>