libftdi Archives

Subject: Re: libftdi 0.x thread recommendations

From: Xiaofan Chen <xiaofanc@xxxxxxxxx>
To: libftdi@xxxxxxxxxxxxxxxxxxxxxxx
Date: Wed, 25 Apr 2012 17:39:31 +0800
On Tue, Apr 24, 2012 at 10:46 PM, Thomas Heller <theller@xxxxxxxxxx> wrote:
> Am 24.04.2012 08:24, schrieb Thomas Jarosch:
>
>> libftdi is not designed to be thread safe.
>
>
> But libusb-win32 is threadsafe? According to
> http://libusb.6.n5.nabble.com/Thread-safety-and-driver-file-name-td3278420.html
>
> So, if I patch the libftdi-calls that I use to do locking
> then I am safe?
>
> I want to read and write at the same time in different threads
> from/to a FT2232H chip...
>

I am not an expert in this discussion, but Travis has an example
for libusb-win32 and Windows threading.
http://sourceforge.net/apps/trac/libusb-win32/browser/trunk/libusb/examples/benchmark.c

-- 
Xiaofan

--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx   

Current Thread