As Alexey Boyko wrote:
Another variant - initialize stdout for each thread, and use fprintf
with different stdout in different thread.
That's not possible for avr-libc itself, as threads itself are out of
the scope of avr-libc (and most likely are the subject of some kind of
RTOS). Of course,
As Alexey Boyko wrote:
I found, that printf_P (and other xxprintf_P) is not reenterable.
(I am using some sort of thread switching library)
Yes, agreed. We don't pretend it were:
``General information about this library
...
Unless otherwise noted, functions of this library are not