libftdi Archives

Subject: background read

From: "Anton A. Litvinov" <mirteney@xxxxxxxxx>
To: libftdi@xxxxxxxxxxxxxxxxxxxxxxx
Date: Tue, 6 Jul 2010 07:46:36 +0600

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

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) ?

or maybe I should use some kind of non-blocking read ?

With best regards.

libftdi - see for details.
To unsubscribe send a mail to libftdi+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx   

Current Thread