Hi,

I'm using libusbx/WINUSB on windows 7 32 machine. When I poll frequently my
device with 64-byte USB requests on bulk pipe, libusb no longer treats me
nothing and return on each call to libusb_submit_transfer and the callback
is never called.
I handle the events in another thread
with libusb_handle_events_timeout_completed() like this :
static void *event_handler_thread(void *args)
{
struct dtlib *lib = (struct dtlib *) args;
int ret = 0;
struct timeval tv = {10,0};

while (lib->run) {
 ret = libusb_handle_events_timeout_completed(lib->ctx, &tv, NULL);
if (ret)
{
ret  = 0;/* for debug */
}
}

pthread_exit(NULL);
return NULL;
}

in this burst conditions how can i manage the LIBUSB_ERROR_NO_MEM ?

Thank you
Mohamed
------------------------------------------------------------------------------
Keep yourself connected to Go Parallel: 
TUNE You got it built. Now make it sing. Tune shows you how.
http://goparallel.sourceforge.net
_______________________________________________
libusbx-devel mailing list
libusbx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusbx-devel

Reply via email to