libftdi Archives

Subject: RE: libftdi 0.x thread recommendations

From: "Spindler, Tyler L" <TLSpindler@xxxxxxxxxxxxxxxxx>
To: "libftdi@xxxxxxxxxxxxxxxxxxxxxxx" <libftdi@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 24 Apr 2012 14:26:15 +0000

>> Is there a way to prevent this error? Am I violating the rules since I

>> have read that libusb 0.1 / libftdi 0.x are not thread safe? Any

>> recommendations on different techniques / function calls to use inside

>> the 2 threads? I'd prefer to continue to use the 0.x version of the

>> library.

 

> libftdi is not designed to be thread safe.

 

> Do you use proper locking before calling into libftdi?

 

> Thomas

 

I just added mutex locking and unlocking to my program’s code base. All the interactions with the libftdi library will now be protected. Thanks for the feedback.

 

Tyler



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


Current Thread