[libhid-discuss] Re: Content filtered message notification

Andreas Klöckner inform at tiker.net
Mon Jan 29 21:42:55 CET 2007


Hi Charles, *,

On Monday 29 January 2007 09:26, you wrote:
> My fault, I had turned on content filtering on the list, and did not
> allow 'multipart/signed'. (I tend to not use PGP/MIME unless I need
> to encrypt an attachment, since all mailers can see the older inline
> signatures. But no need to change that on your end - the filtering
> rules should be fixed now.)

I resent the message.

> I checked out the xpc-remote page, and it looks like a neat project.
> I am definitely open to suggestions on improving the thread support
> in Python, although given the single-threaded nature of the firmware
> in most USB devices, I tend to serialize all of the I/O requests
> before they get to hardware interface libraries like libhid or libusb.

My need for threading arises from the fact that this remote has two interfaces 
with one interrupt endpoint each. One needs to open both of them to actually 
make the device talk. So, I just create two threads and do interrupt_reads in 
each of them. It works like a charm, and should be fine in general since 
there's a one-to-one relationship thread<->endpoint. In general, all the 
patch does is release the Python Global Interpreter Lock while potentially 
blocking libhid functions are executed. This will not affect single-threaded 
applications at all, and enables multi-threaded ones.

Andreas


More information about the libhid-discuss mailing list