2012/2/8 Braiden Kindt <brai...@braiden.org>: >> Would mind trying to confirm it? I will check the docs, but if you can >> reproduce it (either with legacy libusb or with libusb-compat) is >> better. > > I've tested with both pyusb 0.4.2-2 (as packaged with ubuntu 10.04 > package), as well as latest pyusb cloned github using libusb01 > back-end. > > I can confirm the issue does exist in libusb-0.1 too, but I don't > think the issue can be fixed in libusb01 backend? usb_bulk_read > returns number of bytes read on success or < 0 on error. There's no > mechanism in API to both communicate a timeout and data.
What I can do is when I (finally) provide a FAQ, mention that. > > Do you know if libusb-0.1 is supposed to be thread safe? I have not > had success reproducing the error with only one thread. > > libusb-1.0 docs state that that version is thread safe. > I don't remember if libusb-0.1 is thread safe, but I think so because some people used PyUSB 0.4 with multiple threads with no problem. -- Best Regards, Wander Lairson Costa ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ pyusb-users mailing list pyusb-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pyusb-users