Hello
I am writing a program that should
a) continuously read data from FTDI-port in the background and store
it into file.
b) receive some commands from stdin and do appropriate writes into FTDI-port
Questions
1.
can a) and b) run in different threads or
I should place read and write into a cycle in one thread and
read(stdin) -- in another ?
and establish link beetween one to another by means of queue (fifo) ?
2.
or maybe I should use some kind of non-blocking read ?
--
With best regards.
Anton
--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx
|