Confusion about possibly unsafe malloc_r?
Freddie Chopin
freddie_chopin@op.pl
Sun Jun 25 06:18:00 GMT 2017
On Sat, 2017-06-24 at 18:42 -0400, Dave Nadler wrote:
> Is this OK? I'm paranoid about thread safety!
Then it's worth mentioning that newlib and FreeRTOS will _NEVER_ be
fully thread safe unless you are using a toolchain with retargetable
locks and your project has support code for these locks.
printf()-style families partially use global reent structure, this is
expected. Trace the calls of the mentioned functions in newlib source
and you'll see that sometimes _GLOBAL_REENT is used, sometimes thread's
reent.
Regards,
FCh
More information about the Newlib
mailing list