Hi,
I implemented the async I/O on Linux without threads, and it is a killer feature over v0.1. Now, I want to port my C++ classes to Windows without threads if possible. But is it possible ? What I did on Windows : ----------------------- * installed the WinUSB driver for my device (Microchip PIC18F2550 + 2012-07-18 USB stack). * I can connect to the device : libusb_claim_interface() succeeds. Where I am stuck : ------------------ On Linux, I use poll() on the device file descriptors. If poll() detects activity on the fd's I call libusb_handle_events_timeout_completed() on a RX transfer and on a TX transfer. Questions : ----------- 1. On Windows, can I call libusb_handle_events_timeout_completed() periodically, be there activity with the device or not ? 2. Alternatively, is a thread that calls the blocking libusb_handle_events() the only solution ? Thanks. ------------------------------------------------------------------------------ Got visibility? Most devs has no idea what their production app looks like. Find out how fast your code is with AppDynamics Lite. http://ad.doubleclick.net/clk;262219671;13503038;y? http://info.appdynamics.com/FreeJavaPerformanceDownload.html _______________________________________________ libusbx-devel mailing list libusbx-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libusbx-devel