From: Christian N. <ma...@ma...> - 2006-08-23 14:17:11
|
Hi list, I currently have a problem with threading & pyusb interrupt read transfers. My testapp has a thread that 'polls for interrupts' (ahem. but seems a libusb issue ;)). The mainapp only does some tests with the USB-device. Simple 'Hello World' things. It works so far except one thing: every time i call time.sleep() in the main app / main thread, and the poll thread waits for an interruptRead(), the time.sleep() never ever returns. Uh. Bad thing. Any ideas? I could send my code, but i think it's quite useless without the proper usb hardware.... I tracked the problem a bit, and it seems to be connected to the interruptRead() call. If this call is replaced with a simple time.sleep(), the time.sleep() from the main thread works as expected... Any hints where digging / continuing ? Thanks, chris |