[En-Nut-Discussion] Is fprintf blocking?
Uwe Bonnes
bon at elektron.ikp.physik.tu-darmstadt.de
Fri Jan 12 15:28:27 CET 2007
Hallo,
what happens if the buffer for fprintf is full and fprintf tries to print
even more into that buffer? Will this fprintf call block?
I have uart1 running at 38400 baud and have reopened it as stdout.
The main loop receives CAN frames and in some cases prints out a message to
stdout. When these messages are sent fast, messages get lost. It seems that
the printf buffer is filled up and the fprintf message blocks. So the main
look no longer decodes the CAN messages and eventual CAN Messages get
discarded.
Thanks
--
Uwe Bonnes bon at elektron.ikp.physik.tu-darmstadt.de
Institut fuer Kernphysik Schlossgartenstrasse 9 64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------
More information about the En-Nut-Discussion
mailing list