>>>>> "Rogier" == Rogier Wolff <[email protected]> writes:

    Rogier> On Wed, Apr 25, 2012 at 09:29:51AM +0200, Thomas Jarosch wrote:
    >> That should work. You still have to use proper locking if f.e.  a
    >> "background" thread collects data via ftdi_read_data() and you also
    >> call ftdi_read_data() from the "main" thread. (Multi core systems
    >> might see different values for ftdi->readbufer_XXX otherwise)

    Rogier> Is it safe to have a "reading" thread that does all the reading,
    Rogier> while another thread does some writing? My reading-thread dumps
    Rogier> the data into a properly locked (*) shared memory buffer and the
    Rogier> "main" thread reads from there.

I think to. It is the way I understand the FTD2xx library.

Would you mind to share an example for your threaded code?

Thanks
-- 
Uwe Bonnes                [email protected]

Institut fuer Kernphysik  Schlossgartenstrasse 9  64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------

--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to [email protected]   

Reply via email to