Content originally posted in LPCWare by jharwood on Tue Apr 26 14:45:34 MST 2011
Quote: TheFallGuy
Have you tried Newlib instead? IIRC, that provides the lock functions.
Thanks for the suggestion TheFallGuy.
It's a much larger library, as CodeRed points out. Each of the function calls need to be changed to, for example; _printf_r() and the first argument is a pointer to a struct _reent. Each thread of execution holds its own copy of the _reent structure which takes up 240 bytes of memory.